Zend\Server\Method\Definition
Method definition metadata
Synopsis
class Definition
{
- // members
- protected Callback $callback;
- protected array $invokeArguments;
- protected string $methodHelp;
- protected string $name;
- protected null|object $object;
- protected array $prototypes;
- // methods
- public void __construct()
- public Definition setOptions()
- public Definition setName()
- public string getName()
- public Definition setCallback()
- public Callback getCallback()
- public Definition addPrototype()
- public Definition addPrototypes()
- public Definition setPrototypes()
- public array getPrototypes()
- public Definition setMethodHelp()
- public string getMethodHelp()
- public Definition setObject()
- public null|object getObject()
- public Definition setInvokeArguments()
- public array getInvokeArguments()
- public array toArray()
Members
protected
- $callback — \Zend\Server\Method\Callback
- $invokeArguments — array
- $methodHelp — string
- $name — string
- $object — Zend\Server\Method\null|object
- $prototypes — array
Methods
public
- __construct() — Constructor
- addPrototype() — Add prototype to method definition
- addPrototypes() — Add multiple prototypes at once
- getCallback() — Get method callback
- getInvokeArguments() — Retrieve invoke arguments
- getMethodHelp() — Get method help
- getName() — Get method name
- getObject() — Get object to use with method calls
- getPrototypes() — Get all prototypes
- setCallback() — Set method callback
- setInvokeArguments() — Set invoke arguments
- setMethodHelp() — Set method help
- setName() — Set method name
- setObject() — Set object to use with method calls
- setOptions() — Set object state from options
- setPrototypes() — Set all prototypes at once (overwrites)
- toArray() — Serialize to array