1 | <?php |
||
9 | final class DependencyProvider implements DependencyInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | public $context; |
||
15 | |||
16 | /** |
||
17 | * Provider dependency |
||
18 | * |
||
19 | * @var Dependency |
||
20 | */ |
||
21 | private $dependency; |
||
22 | |||
23 | /** |
||
24 | * @var bool |
||
25 | */ |
||
26 | private $isSingleton = false; |
||
27 | |||
28 | /** |
||
29 | * @var mixed |
||
30 | */ |
||
31 | private $instance; |
||
32 | |||
33 | 47 | public function __construct(Dependency $dependency, $context = null) |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 47 | public function register(array &$container, Bind $bind) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 13 | public function inject(Container $container) |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 40 | public function setScope($scope) |
|
73 | |||
74 | 2 | public function setContext(SetContextInterface $provider) |
|
78 | |||
79 | 2 | public function __sleep() |
|
83 | } |
||
84 |