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