PHP 클래스 BetterReflection\Util\FindReflectionOnLine

파일 보기 프로젝트 열기: roave/better-reflection

공개 메소드들

메소드 설명
__invoke ( string $filename, integer $lineNumber ) : BetterReflection\Reflection\ReflectionMethod | ReflectionClass | BetterReflection\Reflection\ReflectionFunction | null Find a reflection on the specified line number.

비공개 메소드들

메소드 설명
computeReflections ( string $filename ) : BetterReflection\Reflection\Reflection[] Find all class and function reflections in the specified file
containsLine ( mixed $reflection, integer $lineNumber ) : boolean Check to see if the line is within the boundaries of the reflection specified.

메소드 상세

__invoke() 공개 메소드

Returns null if no reflections found on the line.
public __invoke ( string $filename, integer $lineNumber ) : BetterReflection\Reflection\ReflectionMethod | ReflectionClass | BetterReflection\Reflection\ReflectionFunction | null
$filename string
$lineNumber integer
리턴 BetterReflection\Reflection\ReflectionMethod | BetterReflection\Reflection\ReflectionClass | BetterReflection\Reflection\ReflectionFunction | null