1 | <?php |
||
18 | abstract class AbstractPushAction extends AbstractAction |
||
19 | { |
||
20 | /** The output action socket. */ |
||
21 | const SOCKET_OUTPUT = 'out'; |
||
22 | |||
23 | /** The array variable socket. */ |
||
24 | const SOCKET_ARRAY = 'array'; |
||
25 | |||
26 | /** The data variable socket. */ |
||
27 | const SOCKET_DATA = 'data'; |
||
28 | |||
29 | /** |
||
30 | * Initializes a new instance of this class. |
||
31 | */ |
||
32 | public function __construct() |
||
40 | |||
41 | /** |
||
42 | * Executes the node's logic. |
||
43 | */ |
||
44 | public function execute() |
||
60 | |||
61 | /** |
||
62 | * Executes the push logic. |
||
63 | * |
||
64 | * @param NodeInterface $node The node to push data to. |
||
65 | * @param mixed $value The value to push. |
||
66 | */ |
||
67 | abstract protected function executePush(NodeInterface $node, $value); |
||
68 | } |
||
69 |