| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class ClosureNode extends CallableNode |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Instantiate a Closure Node |
||
| 23 | * |
||
| 24 | * @param Closure $payload |
||
| 25 | * @param bool $isAReturningVal |
||
| 26 | * @param bool $isATraversable |
||
| 27 | * |
||
| 28 | * @throws NodalFlowException |
||
| 29 | */ |
||
| 30 | public function __construct(Closure $payload, bool $isAReturningVal, bool $isATraversable = false) |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get this Node's Traversable (payload must be consistent for the usage) |
||
| 37 | * |
||
| 38 | * @param mixed $param |
||
| 39 | * |
||
| 40 | * @return Generator |
||
| 41 | */ |
||
| 42 | public function getTraversable($param = null): iterable |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Execute this Node (payload must be consistent for the usage) |
||
| 52 | * |
||
| 53 | * @param mixed|null $param |
||
| 54 | * |
||
| 55 | * @return mixed |
||
| 56 | */ |
||
| 57 | public function exec($param = null) |
||
| 64 |