| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class PricingSchema |
||
| 6 | { |
||
| 7 | protected Money $fixedPrince; |
||
| 8 | |||
| 9 | 4 | public function __construct(Money $fixedPrice) |
|
| 10 | { |
||
| 11 | 4 | $this->fixedPrince = $fixedPrice; |
|
| 12 | 4 | } |
|
| 13 | |||
| 14 | public function getFixedPrince(): Money |
||
| 15 | { |
||
| 16 | return $this->fixedPrince; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function setFixedPrince(Money $fixedPrince): void |
||
| 20 | { |
||
| 21 | $this->fixedPrince = $fixedPrince; |
||
| 22 | } |
||
| 23 | |||
| 24 | 4 | public function toArray(): array |
|
| 28 | ]; |
||
| 29 | } |
||
| 30 | } |
||
| 31 |