original_string: public function getFieldsConfig()
      {
          if (null === $this->fieldsConfigList) {
              $this->fieldsConfigList = [];
  
              foreach ($this->getFields() as $field) {
                  $reflectionProperty = $this->getReflector()->getProperty($field);
                  $docBlock = $reflectionProperty->getDocComment();
                  preg_match('/@var\s([a-z]*).*/', $docBlock, $matches);
  
                  $this->fieldsConfigList[$field] = [
                      'type' => isset($matches[1]) ? $matches[1] : null
                  ];
              }
  
          }
  
          return $this->fieldsConfigList;
      }
code: public function getFieldsConfig()
      {
          if (null === $this->fieldsConfigList) {
              $this->fieldsConfigList = [];
  
              foreach ($this->getFields() as $field) {
                  $reflectionProperty = $this->getReflector()->getProperty($field);
                  $docBlock = $reflectionProperty->getDocComment();
                  preg_match('/@var\s([a-z]*).*/', $docBlock, $matches);
  
                  $this->fieldsConfigList[$field] = [
                      'type' => isset($matches[1]) ? $matches[1] : null
                  ];
              }
  
          }
  
          return $this->fieldsConfigList;
      }
code_tokens: public function getFieldsConfig ( ) { if ( null === $ this -> fieldsConfigList ) { $ this -> fieldsConfigList = [ ] ; foreach ( $ this -> getFields ( ) as $ field ) { $ reflectionProperty = $ this -> getReflector ( ) -> getProperty ( $ field ) ; $ docBlock = $ reflectionProperty -> getDocComment ( ) ; preg_match ( '/@var\s([a-z]*).*/' , $ docBlock , $ matches ) ; $ this -> fieldsConfigList [ $ field ] = [ 'type' => isset ( $ matches [ 1 ] ) ? $ matches [ 1 ] : null ] ; } } return $ this -> fieldsConfigList ; }
docstring: Fetch the var metadata for a field and store it in the config.
  @return array
docstring_tokens: Fetch the var metadata for a field and store it in the config .