PHP Класс PhpSpec\Util\MethodAnalyser

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getMethodOwnerName ( string $class, string $method ) : string
methodIsEmpty ( string $class, string $method ) : boolean
reflectionMethodIsEmpty ( ReflectionMethod $method ) : boolean

Приватные методы

Метод Описание
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

Описание методов

getMethodOwnerName() публичный Метод

public getMethodOwnerName ( string $class, string $method ) : string
$class string
$method string
Результат string

methodIsEmpty() публичный Метод

public methodIsEmpty ( string $class, string $method ) : boolean
$class string
$method string
Результат boolean

reflectionMethodIsEmpty() публичный Метод

public reflectionMethodIsEmpty ( ReflectionMethod $method ) : boolean
$method ReflectionMethod
Результат boolean