| Total Complexity | 4 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | trait IsRelatedOrSimilarTo |
||
| 14 | { |
||
| 15 | use DaftObjectTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return array<int, Product|Service> |
||
| 19 | */ |
||
| 20 | 72 | public function GetIsRelatedTo() : array |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array<int, Product|Service> $value |
||
| 36 | */ |
||
| 37 | 2 | public function SetIsRelatedTo(array $value) : void |
|
| 38 | { |
||
| 39 | 2 | $this->NudgePropertyWithUniqueValuesOfThings( |
|
| 40 | 2 | 'isRelatedTo', |
|
| 41 | 2 | __METHOD__, |
|
| 42 | 2 | $value, |
|
| 43 | 2 | Product::class, |
|
| 44 | 2 | Service::class |
|
| 45 | ); |
||
| 46 | 2 | } |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return array<int, Product|Service> |
||
| 50 | */ |
||
| 51 | 72 | public function GetIsSimilarTo() : array |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param array<int, Product|Service> $value |
||
| 67 | */ |
||
| 68 | 2 | public function SetIsSimilarTo(array $value) : void |
|
| 76 | ); |
||
| 77 | 2 | } |
|
| 79 |