CustomMethods
trait CustomMethods
Allows an object to declare a set of custom methods
Methods
mixed
__call(string $method, array $arguments)
Attempts to locate and call a method dynamically added to a class at runtime if a default cannot be located
bool
hasMethod(string $method)
Return TRUE if a method exists on this object
array
allMethodNames(bool $custom = false)
Return the names of all the methods available on this object
Details
at line 50
mixed
__call(string $method, array $arguments)
Attempts to locate and call a method dynamically added to a class at runtime if a default cannot be located
You can add extra methods to a class using {@link Extensions}, {@link Object::createMethod()} or {@link Object::addWrapperMethod()}
at line 144
bool
hasMethod(string $method)
Return TRUE if a method exists on this object
This should be used rather than PHP's inbuild method_exists() as it takes into account methods added via extensions
at line 172
array
allMethodNames(bool $custom = false)
Return the names of all the methods available on this object