1 | <?php |
||
14 | final class SniffCodeToSniffsFactory implements SniffFactoryInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var Router |
||
18 | */ |
||
19 | private $router; |
||
20 | |||
21 | /** |
||
22 | * @var SingleSniffFactory |
||
23 | */ |
||
24 | private $singleSniffFactory; |
||
25 | |||
26 | 12 | public function __construct(Router $router, SingleSniffFactory $singleSniffFactory) |
|
31 | |||
32 | 7 | public function isMatch(string $reference) : bool |
|
41 | |||
42 | /** |
||
43 | * @return Sniff[] |
||
44 | */ |
||
45 | 7 | public function create(string $sniffCode) : array |
|
50 | } |
||
51 |