| 1 | <?php |
||
| 18 | final class SwitchCondition extends AbstractAction |
||
| 19 | { |
||
| 20 | /** The socket that connects the value variable. */ |
||
| 21 | const SOCKET_VALUE = 'value'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Initializes a new instance of this class. |
||
| 25 | */ |
||
| 26 | public function __construct() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Binds the given node to a socket. |
||
| 35 | * |
||
| 36 | * @param string $socket The name of the socket to bind to. |
||
| 37 | * @param NodeInterface $node The node to bind to. |
||
| 38 | */ |
||
| 39 | public function bind($socket, NodeInterface $node) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Executes the node's logic. |
||
| 50 | */ |
||
| 51 | public function execute() |
||
| 59 | } |
||
| 60 |