Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 84.62% |
Changes | 0 |
1 | <?php |
||
9 | class ValueGeneratorMetadata |
||
10 | { |
||
11 | /** @var Property */ |
||
12 | protected $declaringProperty; |
||
13 | |||
14 | /** @var string */ |
||
15 | protected $type; |
||
16 | |||
17 | /** @var Generator\Generator */ |
||
18 | protected $generator; |
||
19 | |||
20 | /** |
||
21 | * @param mixed[] $definition |
||
22 | */ |
||
23 | 314 | public function __construct(string $type, Generator\Generator $generator) |
|
27 | 314 | } |
|
28 | |||
29 | public function getDeclaringProperty() : Property |
||
30 | { |
||
31 | return $this->declaringProperty; |
||
32 | } |
||
33 | |||
34 | 314 | public function setDeclaringProperty(Property $declaringProperty) : void |
|
35 | { |
||
36 | 314 | $this->declaringProperty = $declaringProperty; |
|
37 | 314 | } |
|
38 | |||
39 | 975 | public function getType() : string |
|
42 | } |
||
43 | |||
44 | 296 | public function getGenerator() : Generator\Generator |
|
49 |