| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 11 | trait HasAddressEmbeddableTrait |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var AddressEmbeddableInterface |
||
| 15 | */ |
||
| 16 | private $addressEmbeddable; |
||
| 17 | |||
| 18 | |||
| 19 | 2 | private function initAddress() |
|
| 20 | { |
||
| 21 | 2 | $this->addressEmbeddable = new AddressEmbeddable(); |
|
| 22 | 2 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return AddressEmbeddableInterface |
||
| 26 | */ |
||
| 27 | 2 | public function getAddressEmbeddable(): AddressEmbeddableInterface |
|
| 28 | { |
||
| 29 | 2 | return $this->addressEmbeddable; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param AddressEmbeddableInterface $address |
||
| 34 | * |
||
| 35 | * @return HasAddressEmbeddableInterface |
||
| 36 | */ |
||
| 37 | 1 | public function setAddressEmbeddable(AddressEmbeddableInterface $address): HasAddressEmbeddableInterface |
|
| 38 | { |
||
| 39 | 1 | $this->addressEmbeddable = $address; |
|
| 40 | |||
| 41 | 1 | return $this; |
|
|
|
|||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param ClassMetadataBuilder $builder |
||
| 46 | */ |
||
| 47 | 1 | protected static function metaForAddress(ClassMetadataBuilder $builder): void |
|
| 52 | 1 | } |
|
| 53 | } |
||
| 54 |