1 | <?php |
||
17 | class RelatedList extends \YF\Modules\Base\Model\RelatedList |
||
18 | { |
||
19 | /** {@inheritdoc} */ |
||
20 | protected $order = 'DESC'; |
||
21 | |||
22 | /** {@inheritdoc} */ |
||
23 | protected $orderField = 'createdtime'; |
||
24 | |||
25 | /** {@inheritdoc} */ |
||
26 | protected $rawData = true; |
||
27 | |||
28 | /** {@inheritdoc} */ |
||
29 | protected $relatedModuleName = 'ModComments'; |
||
30 | |||
31 | /** {@inheritdoc} */ |
||
32 | protected $actionName = 'RecordRelatedList'; |
||
33 | |||
34 | /** {@inheritdoc} */ |
||
35 | protected $fields = ['parent_comments', 'createdtime', 'modifiedtime', 'related_to', 'id', |
||
36 | 'assigned_user_id', 'commentcontent', 'creator', 'customer', 'reasontoedit', 'userid', 'parents']; |
||
37 | |||
38 | /** @var int Record ID */ |
||
39 | protected $recordId; |
||
40 | |||
41 | /** @var array Records Models */ |
||
42 | protected $recordsModel = []; |
||
43 | |||
44 | /** {@inheritdoc} */ |
||
45 | public static function getInstance(string $moduleName, string $viewName = 'ListView') |
||
52 | |||
53 | /** |
||
54 | * Set record ID. |
||
55 | * |
||
56 | * @param int $recordId |
||
57 | * |
||
58 | * @return $this |
||
59 | */ |
||
60 | public function setRecordId(int $recordId) |
||
65 | |||
66 | /** {@inheritdoc} */ |
||
67 | protected function getFromApi(array $headers): array |
||
73 | |||
74 | /** |
||
75 | * Gets records tree. |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | public function getRecordsTree(): array |
||
95 | |||
96 | /** |
||
97 | * Gets record model. |
||
98 | * |
||
99 | * @param int $recordId |
||
100 | * |
||
101 | * @return \YF\Modules\Base\Model\Record|null |
||
102 | */ |
||
103 | public function getRecordById(int $recordId) |
||
119 | } |
||
120 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.