InterfacesTrait
trait InterfacesTrait
Methods
addUseStatement($qualifiedName, $alias = null)
No description
removeUseStatement($qualifiedName)
No description
getNamespace()
No description
$this
getInterfaces()
Returns the interfaces
boolean
hasInterfaces()
Checks whether interfaces exists
boolean
$this
$this
setInterfaces(array $interfaces)
Sets a collection of interfaces
Details
at line line 10
abstract
addUseStatement($qualifiedName, $alias = null)
at line line 12
abstract
removeUseStatement($qualifiedName)
at line line 14
abstract
getNamespace()
at line line 25
$this
addInterface(PhpInterface|string $interface)
Adds an interface.
If the interface is passed as PhpInterface object, the interface is also added as use statement.
at line line 50
PhpInterface[]
getInterfaces()
Returns the interfaces
at line line 59
boolean
hasInterfaces()
Checks whether interfaces exists
at line line 69
boolean
hasInterface(PhpInterface|string $interface)
Checks whether an interface exists
at line line 86
$this
removeInterface(PhpInterface|string $interface)
Removes an interface.
If the interface is passed as PhpInterface object, the interface is also remove from the use statements.
at line line 110
$this
setInterfaces(array $interfaces)
Sets a collection of interfaces