Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | trait MetadataProviderStepTrait |
||
12 | { |
||
13 | protected static $afterExtract; |
||
14 | protected static $afterUnify; |
||
15 | protected static $afterVerify; |
||
16 | protected static $afterImplement; |
||
17 | |||
18 | public static function setAfterExtract(callable $method = null) |
||
19 | { |
||
20 | self::$afterExtract = $method; |
||
21 | } |
||
22 | |||
23 | public static function setAfterUnify(callable $method = null) |
||
24 | { |
||
25 | self::$afterUnify = $method; |
||
26 | } |
||
27 | |||
28 | public static function setAfterVerify(callable $method = null) |
||
29 | { |
||
30 | self::$afterVerify = $method; |
||
31 | } |
||
32 | |||
33 | public static function setAfterImplement(callable $method = null) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Encapsulate applying self::$after{FOO} calls |
||
40 | * |
||
41 | * @param mixed $parm |
||
42 | * @param callable|null $func |
||
43 | */ |
||
44 | private function handleCustomFunction($parm, callable $func = null) |
||
48 | } |
||
49 | } |
||
50 | } |
||
51 |