trait MethodsAware

internal  
 

Methods

setMethods(array $methods)

Replaces all methods.

array
getMethods()

No description

getMethod(string $name)

No description

addMethod(string $name, bool $overwrite = false)

Adds a method. If it already exists, throws an exception or overwrites it if $overwrite is true.

removeMethod(string $name)

No description

bool
hasMethod(string $name)

No description

Details

at line 29
MethodsAware setMethods(array $methods)

Replaces all methods.

Parameters

array $methods

Return Value

MethodsAware

at line 42
array getMethods()

No description

Return Value

array

at line 53
Method getMethod(string $name)

No description

Parameters

string $name

Return Value

Method

at line 62
Method addMethod(string $name, bool $overwrite = false)

Adds a method. If it already exists, throws an exception or overwrites it if $overwrite is true.

Parameters

string $name
bool $overwrite

Return Value

Method

at line 77
MethodsAware removeMethod(string $name)

No description

Parameters

string $name

Return Value

MethodsAware

at line 84
bool hasMethod(string $name)

No description

Parameters

string $name

Return Value

bool