ClassMethodUnit
extends CodeUnit
in package
Tags
Table of Contents
- $name : string
- $sourceFileName : string
- $sourceLines : array<string|int, mixed>
- forClass() : ClassUnit
- forClassMethod() : ClassMethodUnit
- forFunction() : FunctionUnit
- forInterface() : InterfaceUnit
- forInterfaceMethod() : InterfaceMethodUnit
- forTrait() : TraitUnit
- forTraitMethod() : TraitMethodUnit
- isClass() : bool
- isClassMethod() : bool
- isFunction() : bool
- isInterface() : bool
- isInterfaceMethod() : bool
- isTrait() : bool
- isTraitMethod() : bool
- name() : string
- sourceFileName() : string
- sourceLines() : array<string|int, mixed>
- __construct() : mixed
- ensureUserDefinedClass() : void
- ensureUserDefinedInterface() : void
- ensureUserDefinedTrait() : void
- reflectorForClass() : ReflectionClass
- reflectorForClassMethod() : ReflectionMethod
- reflectorForFunction() : ReflectionFunction
Properties
$name
private
string
$name
$sourceFileName
private
string
$sourceFileName
$sourceLines
private
array<string|int, mixed>
$sourceLines
Tags
Methods
forClass()
public
static forClass(string $className) : ClassUnit
Parameters
- $className : string
Tags
Return values
ClassUnit —forClassMethod()
public
static forClassMethod(string $className, string $methodName) : ClassMethodUnit
Parameters
- $className : string
- $methodName : string
Tags
Return values
ClassMethodUnit —forFunction()
public
static forFunction(string $functionName) : FunctionUnit
Parameters
- $functionName : string
Tags
Return values
FunctionUnit —forInterface()
public
static forInterface(string $interfaceName) : InterfaceUnit
Parameters
- $interfaceName : string
Tags
Return values
InterfaceUnit —forInterfaceMethod()
public
static forInterfaceMethod(string $interfaceName, string $methodName) : InterfaceMethodUnit
Parameters
- $interfaceName : string
- $methodName : string
Tags
Return values
InterfaceMethodUnit —forTrait()
public
static forTrait(string $traitName) : TraitUnit
Parameters
- $traitName : string
Tags
Return values
TraitUnit —forTraitMethod()
public
static forTraitMethod(string $traitName, string $methodName) : TraitMethodUnit
Parameters
- $traitName : string
- $methodName : string
Tags
Return values
TraitMethodUnit —isClass()
public
isClass() : bool
Return values
bool —isClassMethod()
public
isClassMethod() : bool
Tags
Return values
bool —isFunction()
public
isFunction() : bool
Return values
bool —isInterface()
public
isInterface() : bool
Return values
bool —isInterfaceMethod()
public
isInterfaceMethod() : bool
Return values
bool —isTrait()
public
isTrait() : bool
Return values
bool —isTraitMethod()
public
isTraitMethod() : bool
Return values
bool —name()
public
name() : string
Return values
string —sourceFileName()
public
sourceFileName() : string
Return values
string —sourceLines()
public
sourceLines() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —__construct()
private
__construct(string $name, string $sourceFileName, array<string|int, mixed> $sourceLines) : mixed
Parameters
- $name : string
- $sourceFileName : string
- $sourceLines : array<string|int, mixed>
Tags
Return values
mixed —ensureUserDefinedClass()
private
static ensureUserDefinedClass(string $className) : void
Parameters
- $className : string
Tags
Return values
void —ensureUserDefinedInterface()
private
static ensureUserDefinedInterface(string $interfaceName) : void
Parameters
- $interfaceName : string
Tags
Return values
void —ensureUserDefinedTrait()
private
static ensureUserDefinedTrait(string $traitName) : void
Parameters
- $traitName : string
Tags
Return values
void —reflectorForClass()
private
static reflectorForClass(string $className) : ReflectionClass
Parameters
- $className : string
Tags
Return values
ReflectionClass —reflectorForClassMethod()
private
static reflectorForClassMethod(string $className, string $methodName) : ReflectionMethod
Parameters
- $className : string
- $methodName : string
Tags
Return values
ReflectionMethod —reflectorForFunction()
private
static reflectorForFunction(string $functionName) : ReflectionFunction
Parameters
- $functionName : string