| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class Comment extends Base |
||
| 19 | { |
||
| 20 | use DaftObjectTraits\UpDownVoteCount; |
||
| 21 | |||
| 22 | const SCHEMA_ORG_TYPE = 'Comment'; |
||
| 23 | |||
| 24 | const PROPERTIES = [ |
||
| 25 | 'downvoteCount', |
||
| 26 | 'parentItem', |
||
| 27 | 'upvoteCount', |
||
| 28 | ]; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return array<int, Question> |
||
| 32 | */ |
||
| 33 | 32 | public function GetParentItem() : array |
|
| 34 | { |
||
| 35 | /** |
||
| 36 | * @var array<int, Question> |
||
| 37 | */ |
||
| 38 | 32 | $out = TypeUtilities::ExpectRetrievedValueIsArray( |
|
| 39 | 32 | 'parentItem', |
|
| 40 | 32 | $this->RetrievePropertyValueFromData('parentItem'), |
|
| 41 | 32 | static::class |
|
| 42 | ); |
||
| 43 | |||
| 44 | 32 | return $out; |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param array<int, Question> $value |
||
| 49 | */ |
||
| 50 | public function SetParentItem(array $value) : void |
||
| 55 | ); |
||
| 56 | } |
||
| 58 |