original_string: public function getMetadata($name = null)
      {
          if (is_null($name)) {
              return $this->metadata;
          }
          if (!isset($this->metadata[$name])) {
              return false;
          }
          return $this->metadata[$name];
      }
code: public function getMetadata($name = null)
      {
          if (is_null($name)) {
              return $this->metadata;
          }
          if (!isset($this->metadata[$name])) {
              return false;
          }
          return $this->metadata[$name];
      }
code_tokens: public function getMetadata ( $ name = null ) { if ( is_null ( $ name ) ) { return $ this -> metadata ; } if ( ! isset ( $ this -> metadata [ $ name ] ) ) { return false ; } return $ this -> metadata [ $ name ] ; }
docstring: Returns the array of all metadata, or one requested metadata value.
  
  @param string|null $name The name of the metadata to return or null to return all metadata.
  @return mixed
docstring_tokens: Returns the array of all metadata or one requested metadata value .