| 1 | <?php |
||
| 24 | class Filter extends AbstractFlow |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var callable |
||
| 28 | */ |
||
| 29 | private $callback; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * First constructor. |
||
| 33 | * |
||
| 34 | * @param callable $callback |
||
| 35 | */ |
||
| 36 | 5 | public function __construct(callable $callback) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritDoc |
||
| 43 | */ |
||
| 44 | 4 | public function flow(NodeInterface $node) |
|
| 52 | } |
||
| 53 |