PHP Class PhpSpec\Util\MethodAnalyser

Mostrar archivo Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
getMethodOwnerName ( string $class, string $method ) : string
methodIsEmpty ( string $class, string $method ) : boolean
reflectionMethodIsEmpty ( ReflectionMethod $method ) : boolean

Private Methods

Method Description
codeIsOnlyBlocksAndWhitespace ( string $codeWithoutComments ) : boolean
getCodeBody ( ReflectionMethod $reflectionMethod ) : string
getDeclaringTrait ( array $traits, string $file, integer $start, integer $end ) : null | ReflectionClass
getMethodOwner ( ReflectionMethod $reflectionMethod, integer $methodStartLine, integer $methodEndLine ) : ReflectionClass
isNotImplementedInPhp ( ReflectionMethod $method ) : boolean
stripComments ( string $code ) : string

Method Details

getMethodOwnerName() public method

public getMethodOwnerName ( string $class, string $method ) : string
$class string
$method string
return string

methodIsEmpty() public method

public methodIsEmpty ( string $class, string $method ) : boolean
$class string
$method string
return boolean

reflectionMethodIsEmpty() public method

public reflectionMethodIsEmpty ( ReflectionMethod $method ) : boolean
$method ReflectionMethod
return boolean