public function get($name)
    {
        // Check if field exists when it is not a collection
        if (!$this->isColl && !in_array($name, $this->getFields())) {
            throw new \InvalidArgumentException(sprintf(
                'Field "%s" not found in record class "%s"',
                $name,
                get_class($this)
            ));
        }
        return isset($this->data[$name]) ? $this->data[$name] : null;
    }
public function get($name)
    {
        // Check if field exists when it is not a collection
        if (!$this->isColl && !in_array($name, $this->getFields())) {
            throw new \InvalidArgumentException(sprintf(
                'Field "%s" not found in record class "%s"',
                $name,
                get_class($this)
            ));
        }
        return isset($this->data[$name]) ? $this->data[$name] : null;
    }
public function get ( $ name ) { // Check if field exists when it is not a collection if ( ! $ this -> isColl && ! in_array ( $ name , $ this -> getFields ( ) ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Field "%s" not found in record class "%s"' , $ name , get_class ( $ this ) ) ) ; } return isset ( $ this -> data [ $ name ] ) ? $ this -> data [ $ name ] : null ; }
Receives the record field value

@param string $name
@throws \InvalidArgumentException When field not found
@return mixed|$this
Receives the record field value