original_string: public function toArray()
      {
          $type = $this->getType();
          $array = array(
              'type' => $type,
          );
          if ('function' == $type) {
              $array['function'] = $this->getFunction();
          } else {
              $array['class']  = $this->getClass();
              $array['method'] = $this->getMethod();
          }
          return $array;
      }
code: public function toArray()
      {
          $type = $this->getType();
          $array = array(
              'type' => $type,
          );
          if ('function' == $type) {
              $array['function'] = $this->getFunction();
          } else {
              $array['class']  = $this->getClass();
              $array['method'] = $this->getMethod();
          }
          return $array;
      }
code_tokens: public function toArray ( ) { $ type = $ this -> getType ( ) ; $ array = array ( 'type' => $ type , ) ; if ( 'function' == $ type ) { $ array [ 'function' ] = $ this -> getFunction ( ) ; } else { $ array [ 'class' ] = $ this -> getClass ( ) ; $ array [ 'method' ] = $ this -> getMethod ( ) ; } return $ array ; }
docstring: Cast callback to array
  
  @return array
docstring_tokens: Cast callback to array