Total Complexity | 11 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | abstract class LocalColumnMetadata extends ColumnMetadata |
||
12 | { |
||
13 | /** @var int|null */ |
||
14 | protected $length; |
||
15 | |||
16 | /** @var int|null */ |
||
17 | protected $scale; |
||
18 | |||
19 | /** @var int|null */ |
||
20 | protected $precision; |
||
21 | |||
22 | /** @var ValueGeneratorMetadata|null */ |
||
23 | protected $valueGenerator; |
||
24 | |||
25 | 274 | public function getLength() : ?int |
|
28 | } |
||
29 | |||
30 | 387 | public function setLength(int $length) : void |
|
31 | { |
||
32 | 387 | $this->length = $length; |
|
33 | 387 | } |
|
34 | |||
35 | 266 | public function getScale() : ?int |
|
36 | { |
||
37 | 266 | return $this->scale; |
|
38 | } |
||
39 | |||
40 | 369 | public function setScale(int $scale) : void |
|
43 | 369 | } |
|
44 | |||
45 | 266 | public function getPrecision() : ?int |
|
46 | { |
||
47 | 266 | return $this->precision; |
|
48 | } |
||
49 | |||
50 | 369 | public function setPrecision(int $precision) : void |
|
53 | 369 | } |
|
54 | |||
55 | 1245 | public function hasValueGenerator() : bool |
|
56 | { |
||
57 | 1245 | return $this->valueGenerator !== null; |
|
58 | } |
||
59 | |||
60 | 1107 | public function getValueGenerator() : ?ValueGeneratorMetadata |
|
63 | } |
||
64 | |||
65 | 318 | public function setValueGenerator(ValueGeneratorMetadata $valueGenerator) : void |
|
66 | { |
||
67 | 318 | $valueGenerator->setDeclaringProperty($this); |
|
|
|||
68 | |||
69 | 318 | $this->valueGenerator = $valueGenerator; |
|
70 | 318 | } |
|
71 | |||
72 | 367 | public function getValueGenerationExecutor(AbstractPlatform $platform) : ?ValueGenerationExecutor |
|
77 | } |
||
78 | } |
||
79 |