Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class CallBackCondition implements ConditionInterface |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var callable |
||
13 | */ |
||
14 | private $callback; |
||
15 | |||
16 | /** |
||
17 | * CheckTypeCondition constructor. |
||
18 | * @param callable $callback |
||
19 | */ |
||
20 | public function __construct(callable $callback) |
||
21 | { |
||
22 | $this->callback = $callback; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param Table $table |
||
27 | * @param Column $column |
||
28 | * @return bool : if the Generator will be applied |
||
29 | */ |
||
30 | public function canApply(Table $table, Column $column) : bool |
||
33 | } |
||
34 | } |
||
35 |