class Base extends Base implements IMethod

Base method class.

Properties

protected string $_name from Base
protected $_classes from Base
boolean $supported
string $comment

Methods

string
getName()

Returns the name.

from Base
boolean
setName(string $name)

Sets the name.

from Base
array
getClasses()

Returns all declared classes.

from Base
__construct(string $name, boolean $supported = false, string $comment = '')

Create the instance of your extended method.

boolean
isSupported()

Returns if the method is supported.

Details

in Base at line 30
final string getName()

Returns the name.

Return Value

string

in Base at line 41
final boolean setName(string $name)

Sets the name.

Parameters

string $name

Return Value

boolean

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.

Return Value

array

at line 41
__construct(string $name, boolean $supported = false, string $comment = '')

Create the instance of your extended method.

Parameters

string $name The name of your method.
boolean $supported If the method fulfill itself, it will be true. Otherwise the supported flag will be false.
string $comment A comment about the extended method.

at line 53
boolean isSupported()

Returns if the method is supported.

Return Value

boolean