Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class ServiceInjection implements Injection |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $serviceName; |
||
13 | /** |
||
14 | * @var bool |
||
15 | */ |
||
16 | private $compulsory; |
||
17 | |||
18 | public function __construct(string $serviceName, bool $compulsory) |
||
19 | { |
||
20 | $this->serviceName = $serviceName; |
||
21 | $this->compulsory = $compulsory; |
||
22 | } |
||
23 | |||
24 | public function getCode(): string |
||
33 | } |
||
34 | } |
||
35 |