original_string: protected function getRequiredType(callable $callback)
  	{
  		$ref = new \ReflectionFunction($callback);
  		
  		if($ref->getNumberOfParameters() > 0)
  		{
  			$params = $ref->getParameters();
  			
  			if(isset($params[0]) &&  NULL !== ($type = $params[0]->getClass()))
  			{
  				return $type;
  			}
  		}
  	}
code: protected function getRequiredType(callable $callback)
  	{
  		$ref = new \ReflectionFunction($callback);
  		
  		if($ref->getNumberOfParameters() > 0)
  		{
  			$params = $ref->getParameters();
  			
  			if(isset($params[0]) &&  NULL !== ($type = $params[0]->getClass()))
  			{
  				return $type;
  			}
  		}
  	}
code_tokens: protected function getRequiredType ( callable $ callback ) { $ ref = new \ ReflectionFunction ( $ callback ) ; if ( $ ref -> getNumberOfParameters ( ) > 0 ) { $ params = $ ref -> getParameters ( ) ; if ( isset ( $ params [ 0 ] ) && NULL !== ( $ type = $ params [ 0 ] -> getClass ( ) ) ) { return $ type ; } } }
docstring: Determines the type of the first callback argument and returns it.
  
  @param callable $callback
  @return string
docstring_tokens: Determines the type of the first callback argument and returns it .