| Total Complexity | 10 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class MappedSuperClassMetadata extends ComponentMetadata |
||
| 8 | { |
||
| 9 | /** @var string|null */ |
||
| 10 | protected $customRepositoryClassName; |
||
| 11 | |||
| 12 | /** @var Property|null */ |
||
| 13 | protected $declaredVersion; |
||
| 14 | |||
| 15 | public function getCustomRepositoryClassName() : ?string |
||
| 16 | { |
||
| 17 | return $this->customRepositoryClassName; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function setCustomRepositoryClassName(?string $customRepositoryClassName) : void |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getDeclaredVersion() : ?Property |
||
| 26 | { |
||
| 27 | return $this->declaredVersion; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function setDeclaredVersion(Property $property) : void |
||
| 31 | { |
||
| 32 | $this->declaredVersion = $property; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getVersion() : ?Property |
||
| 36 | { |
||
| 37 | /** @var MappedSuperClassMetadata|null $parent */ |
||
| 38 | $parent = $this->parent; |
||
| 39 | $version = $this->declaredVersion; |
||
| 40 | |||
| 41 | if ($parent && ! $version) { |
||
| 42 | $version = $parent->getVersion(); |
||
| 43 | } |
||
| 44 | |||
| 45 | return $version; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function isVersioned() : bool |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | public function addProperty(Property $property) : void |
||
| 65 |