Zend\Server\Definition
Server methods metadata
Synopsis
class Definition
implements
Countable,Iterator
{
- // members
- protected array $methods;
- protected bool $overwriteExistingMethods;
- // methods
- public void __construct()
- public Definition setOverwriteExistingMethods()
- public Definition addMethod()
- public Definition addMethods()
- public Definition setMethods()
- public bool hasMethod()
- public Definition getMethod()
- public array getMethods()
- public Definition removeMethod()
- public Definition clearMethods()
- public array toArray()
- public int count()
- public Definition current()
- public int|string key()
- public Definition next()
- public void rewind()
- public bool valid()
Hierarchy
Members
protected
- $methods — array
- $overwriteExistingMethods — Zend\Server\bool
Methods
public
- __construct() — Constructor
- addMethod() — Add method to definition
- addMethods() — Add multiple methods
- clearMethods() — Clear all method definitions
- count() — Countable: count of methods
- current() — Iterator: current item
- getMethod() — Get a given method definition
- getMethods() — Get all method definitions
- hasMethod() — Does the definition have the given method?
- key() — Iterator: current item key
- next() — Iterator: advance to next method
- removeMethod() — Remove a method definition
- rewind() — Iterator: return to first method
- setMethods() — Set all methods at once (overwrite)
- setOverwriteExistingMethods() — Set flag indicating whether or not overwriting existing methods is allowed
- toArray() — Cast definition to an array
- valid() — Iterator: is the current index valid?