original_string: protected function getFieldInstance($value)
      {
          if ($value instanceof Field) {
              return $value;
          }
  
          $container = new $this->type();
          $container->value = $value;
  
          return $container;
      }
code: protected function getFieldInstance($value)
      {
          if ($value instanceof Field) {
              return $value;
          }
  
          $container = new $this->type();
          $container->value = $value;
  
          return $container;
      }
code_tokens: protected function getFieldInstance ( $ value ) { if ( $ value instanceof Field ) { return $ value ; } $ container = new $ this -> type ( ) ; $ container -> value = $ value ; return $ container ; }
docstring: Get a field from a value
  
  @param Field|mixed $value
  @return Field
docstring_tokens: Get a field from a value