Property | Type | Description | |
---|---|---|---|
$client | PAGI\Client\IClient | The PAGI client in use. | |
$logger | PAGI\Logger\Asterisk\IAsteriskLogger | Asterisk logger instance to use. | |
$nodeResults | All registered node results. | ||
$nodes | All registered nodes. |
Method | Description | |
---|---|---|
jumpTo ( string $name ) : void | Runs a node and process the result. | |
register ( string $name ) : |
Registers a new node in the application. Returns the created node. | |
registerResult ( string $name ) : |
Registers a new node result to be taken into account when the given node is ran. | |
setAgiClient ( PAGI\Client\IClient $client ) : |
Sets the pagi client to use by this node. | |
setName ( string $name ) : |
Gives a name for this node. |
Method | Description | |
---|---|---|
logDebug ( string $msg ) : void | Used internally to log debug messages | |
processNodeResult ( |
Process the result of the given node. Returns false if no other nodes should be run, or a string with the next node name. |
protected processNodeResult ( |
||
$node | Node that was run. | |
return | string | false |
public registerResult ( string $name ) : |
||
$name | string | |
return |
public setAgiClient ( PAGI\Client\IClient $client ) : |
||
$client | PAGI\Client\IClient | |
return |
protected IClient,PAGI\Client $client | ||
return | PAGI\Client\IClient |
protected IAsteriskLogger,PAGI\Logger\Asterisk $logger | ||
return | PAGI\Logger\Asterisk\IAsteriskLogger |
protected NodeActionCommand[],PAGI\Node $nodeResults | ||
return |