original_string: public function getProtectedMethod(...$params)
      {
          if (is_string($params[0])) {
              list($className, $object, $name) = $params;
          } elseif (is_object($params[0])) {
              list($object, $name) = $params;
              $className = get_class($object);
          }
  
          /** @var string $className */
          /** @var object $object */
          /** @var string $name */
  
  
          $this->checkOnObject($object);
          $this->checkOnMemberName($name);
  
          $reflector = $this->getReflectionMethod($className, $name);
  
          return $reflector->getClosure($object);
      }
code: public function getProtectedMethod(...$params)
      {
          if (is_string($params[0])) {
              list($className, $object, $name) = $params;
          } elseif (is_object($params[0])) {
              list($object, $name) = $params;
              $className = get_class($object);
          }
  
          /** @var string $className */
          /** @var object $object */
          /** @var string $name */
  
  
          $this->checkOnObject($object);
          $this->checkOnMemberName($name);
  
          $reflector = $this->getReflectionMethod($className, $name);
  
          return $reflector->getClosure($object);
      }
code_tokens: public function getProtectedMethod ( ... $ params ) { if ( is_string ( $ params [ 0 ] ) ) { list ( $ className , $ object , $ name ) = $ params ; } elseif ( is_object ( $ params [ 0 ] ) ) { list ( $ object , $ name ) = $ params ; $ className = get_class ( $ object ) ; } /** @var string $className */ /** @var object $object */ /** @var string $name */ $ this -> checkOnObject ( $ object ) ; $ this -> checkOnMemberName ( $ name ) ; $ reflector = $ this -> getReflectionMethod ( $ className , $ name ) ; return $ reflector -> getClosure ( $ object ) ; }
docstring: Returns a method as closure
  
  @param array ...$params
  
  @return \Closure
  @throws ProtectedMembersAccessException
docstring_tokens: Returns a method as closure