Server methods metadata.
More...
|
| __construct ($methods=null) |
| Constructor.
|
|
| setOverwriteExistingMethods ($flag) |
| Set flag indicating whether or not overwriting existing methods is allowed.
|
|
| addMethod ($method, $name=null) |
| Add method to definition.
|
|
| addMethods (array $methods) |
| Add multiple methods.
|
|
| setMethods (array $methods) |
| Set all methods at once (overwrite)
|
|
| hasMethod ($method) |
| Does the definition have the given method?
|
|
| getMethod ($method) |
| Get a given method definition.
|
|
| getMethods () |
| Get all method definitions.
|
|
| removeMethod ($method) |
| Remove a method definition.
|
|
| clearMethods () |
| Clear all method definitions.
|
|
| toArray () |
| Cast definition to an array.
|
|
| count () |
| Countable: count of methods.
|
|
| current () |
| Iterator: current item.
|
|
| key () |
| Iterator: current item key.
|
|
| next () |
| Iterator: advance to next method.
|
|
| rewind () |
| Iterator: return to first method.
|
|
| valid () |
| Iterator: is the current index valid?
|
|
__construct |
( |
|
$methods = null | ) |
|
addMethod |
( |
|
$method, |
|
|
|
$name = null |
|
) |
| |
Add method to definition.
- Parameters
-
array | \Zend\Server\Method\Definition | $method | |
null | string | $name | |
- Returns
- Exceptions
-
\Zend\Server\Exception\InvalidArgumentException | if duplicate or invalid method provided |
addMethods |
( |
array |
$methods | ) |
|
Add multiple methods.
- Parameters
-
array | $methods | Array of objects or arrays |
- Returns
Clear all method definitions.
- Returns
Countable: count of methods.
- Returns
- int
Iterator: current item.
- Returns
- Method
Get a given method definition.
- Parameters
-
- Returns
- null|
Get all method definitions.
- Returns
- array Array of objects
Does the definition have the given method?
- Parameters
-
- Returns
- bool
Iterator: current item key.
- Returns
- int|string
Iterator: advance to next method.
- Returns
- Method
Remove a method definition.
- Parameters
-
- Returns
Iterator: return to first method.
- Returns
- void
setMethods |
( |
array |
$methods | ) |
|
Set all methods at once (overwrite)
- Parameters
-
array | $methods | Array of objects or arrays |
- Returns
setOverwriteExistingMethods |
( |
|
$flag | ) |
|
Set flag indicating whether or not overwriting existing methods is allowed.
- Parameters
-
- Returns
Cast definition to an array.
- Returns
- array
Iterator: is the current index valid?
- Returns
- bool
$overwriteExistingMethods = false |
|
protected |