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