1 | <?php |
||
5 | class ReferenceResolver |
||
6 | { |
||
7 | const CONTAINER_REGEXP = '`^\$container$`i'; |
||
8 | const ENVIRONMENT_REGEXP = '`^\$env\.(.*)$`i'; |
||
9 | const CONSTANT_REGEXP = '`^\$const\.(.*)$`i'; |
||
10 | /** |
||
11 | * |
||
12 | * @var Container |
||
13 | */ |
||
14 | private $container; |
||
15 | |||
16 | public function __construct(Container $container) |
||
20 | |||
21 | /** |
||
22 | * Return the resolved value of the given reference |
||
23 | * @param mixed $reference |
||
24 | * @return mixed |
||
25 | */ |
||
26 | public function resolve($reference) |
||
42 | |||
43 | public function resolveMany(array $references) |
||
54 | } |
||
55 |
As per the PSR-2 coding standard, there must not be a space in front of the colon in case statements.
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.