TargetClassInterface
in
Table of Contents
- factory() : TargetClassInterface
- Returns a new instance of the current TargetClassInterface's implementation.
- getInterfaces() : array<string|int, mixed>
- Returns the targetClass's interfaces.
- getMethods() : array<string|int, mixed>
- Returns the targetClass's methods.
- getName() : string
- Returns the targetClass's name.
- getNamespaceName() : string
- Returns the targetClass's namespace name.
- getShortName() : string
- Returns the targetClass's short name.
- hasInternalAncestor() : bool
- Returns whether the targetClass has an internal ancestor.
- implementsInterface() : bool
- Returns whether the targetClass is in the passed interface.
- inNamespace() : bool
- Returns whether the targetClass is in namespace.
- isAbstract() : bool
- Returns whether the targetClass is abstract.
- isFinal() : bool
- Returns whether the targetClass is final.
Methods
factory()
Returns a new instance of the current TargetClassInterface's implementation.
public
static factory(string $name) : TargetClassInterface
Parameters
- $name : string
Return values
TargetClassInterface —getInterfaces()
Returns the targetClass's interfaces.
public
getInterfaces() : array<string|int, mixed>
Return values
array<string|int, mixed> —getMethods()
Returns the targetClass's methods.
public
getMethods() : array<string|int, mixed>
Return values
array<string|int, mixed> —getName()
Returns the targetClass's name.
public
getName() : string
Return values
string —getNamespaceName()
Returns the targetClass's namespace name.
public
getNamespaceName() : string
Return values
string —getShortName()
Returns the targetClass's short name.
public
getShortName() : string
Return values
string —hasInternalAncestor()
Returns whether the targetClass has an internal ancestor.
public
hasInternalAncestor() : bool
Return values
bool —implementsInterface()
Returns whether the targetClass is in the passed interface.
public
implementsInterface(mixed $interface) : bool
Parameters
- $interface : mixed
Return values
bool —inNamespace()
Returns whether the targetClass is in namespace.
public
inNamespace() : bool
Return values
bool —isAbstract()
Returns whether the targetClass is abstract.
public
isAbstract() : bool
Return values
bool —isFinal()
Returns whether the targetClass is final.
public
isFinal() : bool