original_string: public function hasMethod($name)
      {
          return parent::hasMethod($name) ||
          is_object($this->getTranslation()) && $this->getTranslation()->hasMethod($name);
      }
code: public function hasMethod($name)
      {
          return parent::hasMethod($name) ||
          is_object($this->getTranslation()) && $this->getTranslation()->hasMethod($name);
      }
code_tokens: public function hasMethod ( $ name ) { return parent :: hasMethod ( $ name ) || is_object ( $ this -> getTranslation ( ) ) && $ this -> getTranslation ( ) -> hasMethod ( $ name ) ; }
docstring: Returns a value indicating whether a method is defined.
  
  The default implementation is a call to php function `method_exists()`.
  You may override this method when you implemented the php magic method `__call()`.
  @param string $name the method name
  @return boolean whether the method is defined
docstring_tokens: Returns a value indicating whether a method is defined .