original_string: public function getObject($key, string $keyField = null): ?FlexObjectInterface
      {
          return $this->getIndex(null, $keyField)->get($key);
      }
code: public function getObject($key, string $keyField = null): ?FlexObjectInterface
      {
          return $this->getIndex(null, $keyField)->get($key);
      }
code_tokens: public function getObject ( $ key , string $ keyField = null ) : ? FlexObjectInterface { return $ this -> getIndex ( null , $ keyField ) -> get ( $ key ) ; }
docstring: Returns an object if it exists.
  
  Note: It is not safe to use the object without checking if the user can access it.
  
  @param string $key
  @param string|null $keyField  Field to be used as the key.
  @return FlexObjectInterface|null
docstring_tokens: Returns an object if it exists .