| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | trait ByArtist |
||
| 13 | { |
||
| 14 | use DaftObjectTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return array<int, MusicGroup> |
||
| 18 | */ |
||
| 19 | public function GetByArtist() : array |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var array<int, MusicGroup> |
||
| 23 | */ |
||
| 24 | $out = TypeUtilities::ExpectRetrievedValueIsArray( |
||
| 25 | 'byArtist', |
||
| 26 | $this->RetrievePropertyValueFromData('byArtist'), |
||
|
|
|||
| 27 | static::class |
||
| 28 | ); |
||
| 29 | |||
| 30 | return $out; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param array<int, MusicGroup> $value |
||
| 35 | */ |
||
| 36 | public function SetByArtist(array $value) : void |
||
| 41 | ); |
||
| 42 | } |
||
| 44 |