Base
class Base extends Base implements IFeature
Basic feature class.
Properties
protected string | $_name | from Base | |
protected | $_classes | from Base | |
protected array | $_methods |
Methods
delMethod(string $name)
Deletes a method from a feature by name.
boolean
existsMethod(string $name)
Returns a boolean if a method exists in the _methods array.
Details
in Base at line 30
final string
getName()
Returns the name.
in Base at line 41
final boolean
setName(string $name)
Sets the name.
in Base at line 57
array
getClasses()
Returns all declared classes.
We need this way, because the autoloader will try to include the class file if we use "class_exists" or similar functions.
at line 36
addMethod(IMethod $method)
Adds a new method to the feature.
at line 51
delMethod(string $name)
Deletes a method from a feature by name.
at line 66
boolean
existsMethod(string $name)
Returns a boolean if a method exists in the _methods array.
at line 79
IMethod
getMethod(string $name)
Returns a method of a feature if it exists.