original_string: public function toArray()
      {
          $prototypes = $this->getPrototypes();
          $signatures = array();
          foreach ($prototypes as $prototype) {
              $signatures[] = $prototype->toArray();
          }
  
          return array(
              'name'            => $this->getName(),
              'callback'        => $this->getCallback()->toArray(),
              'prototypes'      => $signatures,
              'methodHelp'      => $this->getMethodHelp(),
              'invokeArguments' => $this->getInvokeArguments(),
              'object'          => $this->getObject(),
          );
      }
code: public function toArray()
      {
          $prototypes = $this->getPrototypes();
          $signatures = array();
          foreach ($prototypes as $prototype) {
              $signatures[] = $prototype->toArray();
          }
  
          return array(
              'name'            => $this->getName(),
              'callback'        => $this->getCallback()->toArray(),
              'prototypes'      => $signatures,
              'methodHelp'      => $this->getMethodHelp(),
              'invokeArguments' => $this->getInvokeArguments(),
              'object'          => $this->getObject(),
          );
      }
code_tokens: public function toArray ( ) { $ prototypes = $ this -> getPrototypes ( ) ; $ signatures = array ( ) ; foreach ( $ prototypes as $ prototype ) { $ signatures [ ] = $ prototype -> toArray ( ) ; } return array ( 'name' => $ this -> getName ( ) , 'callback' => $ this -> getCallback ( ) -> toArray ( ) , 'prototypes' => $ signatures , 'methodHelp' => $ this -> getMethodHelp ( ) , 'invokeArguments' => $ this -> getInvokeArguments ( ) , 'object' => $ this -> getObject ( ) , ) ; }
docstring: Serialize to array
  
  @return array
docstring_tokens: Serialize to array