Total Complexity | 5 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | class Dependency |
||
15 | { |
||
16 | /** |
||
17 | * @var Container |
||
18 | */ |
||
19 | private $di = null; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $class = null; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | private $contract = false; |
||
30 | |||
31 | /** |
||
32 | * @var bool |
||
33 | */ |
||
34 | private $optional = false; |
||
35 | |||
36 | /** |
||
37 | * Dependency constructor. |
||
38 | * @param Container $di |
||
39 | * @param string $class |
||
40 | * @param bool $contract |
||
41 | * @param bool $optional |
||
42 | */ |
||
43 | public function __construct(Container $di, string $class, bool $contract = false, bool $optional = false) |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return object|mixed|null |
||
53 | */ |
||
54 | public function object() |
||
71 |