1 | <?php |
||
17 | final class CallbackAction extends AbstractAction |
||
18 | { |
||
19 | /** The constant that defines the output socket. */ |
||
20 | const SOCKET_OUTPUT = 'out'; |
||
21 | |||
22 | /** |
||
23 | * The callback that should be invoked. |
||
24 | * |
||
25 | * @var callable |
||
26 | */ |
||
27 | private $callback; |
||
28 | |||
29 | /** |
||
30 | * Initializes a new instance of this class. |
||
31 | * |
||
32 | * @param callable $callback The callback. |
||
33 | */ |
||
34 | public function __construct($callback) |
||
46 | |||
47 | /** |
||
48 | * Executes the node's logic. |
||
49 | */ |
||
50 | public function execute() |
||
56 | } |
||
57 |