Method | Description | |
---|---|---|
addInterface ( |
Adds an interface. | |
addUseStatement ( string $qualifiedName, null | string $alias = null ) | Adds a use statement with an optional alias | |
getInterfaces ( ) : phootwork\collection\Set | Returns the interfaces | |
getNamespace ( ) : string | Returns the namespace | |
hasInterface ( |
Checks whether an interface exists | |
hasInterfaces ( ) : boolean | Checks whether interfaces exists | |
removeInterface ( |
Removes an interface. | |
removeUseStatement ( string $qualifiedName ) | Removes a use statement | |
setInterfaces ( array $interfaces ) | Sets a collection of interfaces |
Method | Description | |
---|---|---|
initInterfaces ( ) |
public addInterface ( |
||
$interface | interface or qualified name |
public getInterfaces ( ) : phootwork\collection\Set | ||
return | phootwork\collection\Set |
abstract public getNamespace ( ) : string | ||
return | string |
public hasInterface ( |
||
$interface | interface name or instance | |
return | boolean |
public hasInterfaces ( ) : boolean | ||
return | boolean | `true` if interfaces are available and `false` if not |
public removeInterface ( |
||
$interface | interface or qualified name |
abstract public removeUseStatement ( string $qualifiedName ) | ||
$qualifiedName | string |
public setInterfaces ( array $interfaces ) | ||
$interfaces | array |