original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Receives the record field value
  
  @param string $name
  @throws \InvalidArgumentException When field not found
  @return mixed|$this
docstring_tokens: Receives the record field value