| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 10 | trait HasMoneyEmbeddableTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var MoneyEmbeddableInterface |
||
| 14 | */ |
||
| 15 | private $moneyEmbeddable; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param ClassMetadataBuilder $builder |
||
| 19 | */ |
||
| 20 | 1 | protected static function metaForMoney(ClassMetadataBuilder $builder): void |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | 1 | private function initMoney() |
|
| 28 | { |
||
| 29 | 1 | $this->moneyEmbeddable = new MoneyEmbeddable(); |
|
| 30 | 1 | } |
|
| 31 | |||
| 32 | 2 | public function getMoneyEmbeddable(): MoneyEmbeddableInterface |
|
| 33 | { |
||
| 34 | 2 | return $this->moneyEmbeddable; |
|
| 35 | } |
||
| 36 | |||
| 37 | 1 | public function setMoneyEmbeddable(MoneyEmbeddableInterface $moneyEmbeddable): HasMoneyEmbeddableInterface |
|
| 42 | } |
||
| 43 | } |
||
| 44 |