original_string: public function getMetadata($key)
      {
          if (!is_array($this->metadata)) {
              $this->metadata = json_decode(json_encode($this->metadata), true);
          }
          return (isset($this->metadata[$key])) ? $this->metadata[$key] : null;
      }
code: public function getMetadata($key)
      {
          if (!is_array($this->metadata)) {
              $this->metadata = json_decode(json_encode($this->metadata), true);
          }
          return (isset($this->metadata[$key])) ? $this->metadata[$key] : null;
      }
code_tokens: public function getMetadata ( $ key ) { if ( ! is_array ( $ this -> metadata ) ) { $ this -> metadata = json_decode ( json_encode ( $ this -> metadata ) , true ) ; } return ( isset ( $ this -> metadata [ $ key ] ) ) ? $ this -> metadata [ $ key ] : null ; }
docstring: Get the current metadata value for the provided key.
  @param string $key
  @return string|NULL
docstring_tokens: Get the current metadata value for the provided key .