1 | <?php |
||
20 | abstract class AbstractSegmentFactory |
||
21 | { |
||
22 | /** |
||
23 | * @var Segment[] |
||
24 | */ |
||
25 | protected $cache = []; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $patternOptionKey; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $delimiter; |
||
36 | |||
37 | /** |
||
38 | * Caches the abstract getter results to eliminate performance impact. |
||
39 | */ |
||
40 | public function __construct() |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | * |
||
49 | * @return Segment |
||
50 | */ |
||
51 | public function __invoke(ContainerInterface $container, $resolvedName, array $options = null) |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | abstract protected function getPatternOptionKey(); |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | abstract protected function getDelimiter(); |
||
73 | } |
||
74 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.