Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
AbstractGeneratorAware | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getGenerator | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setGenerator | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace WsdlToPhp\PackageGenerator\Generator; |
6 | |
7 | abstract class AbstractGeneratorAware |
8 | { |
9 | protected Generator $generator; |
10 | |
11 | public function __construct(Generator $generator) |
12 | { |
13 | $this->setGenerator($generator); |
14 | } |
15 | |
16 | public function getGenerator(): ?Generator |
17 | { |
18 | return $this->generator; |
19 | } |
20 | |
21 | protected function setGenerator(Generator $generator): self |
22 | { |
23 | $this->generator = $generator; |
24 | |
25 | return $this; |
26 | } |
27 | } |