Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class CustomTag extends AbstractTag |
||
11 | { |
||
12 | /** |
||
13 | * @var callable |
||
14 | */ |
||
15 | protected $process; |
||
16 | |||
17 | /** |
||
18 | * Class constructor. |
||
19 | * |
||
20 | * @param string $name |
||
21 | * @param callable $process |
||
22 | */ |
||
23 | 2 | public function __construct(string $name, callable $process) |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * Process a notation. |
||
32 | * |
||
33 | * @param array $notations |
||
34 | * @param string $value |
||
35 | * @return array |
||
36 | */ |
||
37 | 1 | public function process(array $notations, string $value): array |
|
42 |