Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
28 | class DynamicReference implements DependencyInterface |
||
29 | { |
||
30 | private $definition; |
||
31 | |||
32 | private function __construct($definition) |
||
35 | } |
||
36 | |||
37 | public static function to($definition) |
||
38 | { |
||
39 | return new self($definition); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param Container $container |
||
44 | */ |
||
45 | public function resolve(ContainerInterface $container) |
||
48 | } |
||
49 | } |
||
50 |