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