1 | <?php |
||
19 | class AggregateNode extends PayloadNodeAbstract implements AggregateNodeInterface |
||
20 | { |
||
21 | /** |
||
22 | * The underlying pseudo Flow |
||
23 | * |
||
24 | * @var FlowInterface |
||
25 | */ |
||
26 | protected $payload; |
||
27 | |||
28 | /** |
||
29 | * Instantiate an Aggregate Node |
||
30 | * |
||
31 | * @param bool $isAReturningVal |
||
32 | * |
||
33 | * @throws NodalFlowException |
||
34 | */ |
||
35 | public function __construct($isAReturningVal) |
||
41 | |||
42 | /** |
||
43 | * Add a traversable to the aggregate |
||
44 | * |
||
45 | * @param TraversableNodeInterface $node |
||
46 | * |
||
47 | * @throws NodalFlowException |
||
48 | * |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function addTraversable(TraversableNodeInterface $node) |
||
57 | |||
58 | /** |
||
59 | * Get the traversable to traverse within the Flow |
||
60 | * |
||
61 | * @param mixed $param |
||
62 | * |
||
63 | * @return \Generator |
||
64 | */ |
||
65 | public function getTraversable($param) |
||
94 | } |
||
95 |