1 | <?php |
||
24 | class Table |
||
25 | { |
||
26 | /** @var array Collection of real row field names */ |
||
27 | protected static $fieldsRealNames = array(); |
||
28 | |||
29 | /** @var integer Navigation identifier for table structure */ |
||
30 | protected $navigationID; |
||
31 | |||
32 | /** @var integer Table parent material identifier */ |
||
33 | protected $materialID; |
||
34 | |||
35 | /** @var Field[] Collection field instances that correspond table columns */ |
||
36 | protected $fields; |
||
37 | |||
38 | /** @var QueryInterface Database query interface */ |
||
39 | protected $query; |
||
40 | |||
41 | /** @var string Locale identifier */ |
||
42 | protected $locale; |
||
43 | |||
44 | /** @var Row[] Fields table rows collection */ |
||
45 | protected $collection; |
||
46 | |||
47 | /** @var string Row class name */ |
||
48 | protected $rowInstance = '\samsoncms\api\field\Row'; |
||
49 | |||
50 | /** @return array Get field table column names collection */ |
||
51 | public function columns() |
||
55 | |||
56 | /** |
||
57 | * Get collection of table column values as array. |
||
58 | * |
||
59 | * @param string $fieldID Additional field identifier |
||
60 | * |
||
61 | * @return array Collection of table column values as array |
||
62 | */ |
||
63 | public function values($fieldID) |
||
67 | |||
68 | /** |
||
69 | * Get field table as multidimensional array. |
||
70 | * |
||
71 | * @return array Field table represented as array |
||
72 | */ |
||
73 | public function toArray() |
||
77 | |||
78 | /** @return array Collection of table rows(materials) identifiers */ |
||
79 | protected function rowIDs() |
||
90 | |||
91 | /** |
||
92 | * Build correct localized field request for retrieving additional fields records. |
||
93 | * |
||
94 | * @param Field[] $fields Collection of additional fields |
||
95 | * |
||
96 | * @return Condition Built condition for query |
||
97 | */ |
||
98 | protected function fieldsCondition($fields) |
||
131 | |||
132 | /** |
||
133 | * Fill table with data from database. |
||
134 | */ |
||
135 | protected function load() |
||
175 | |||
176 | /** |
||
177 | * FieldsTable constructor. |
||
178 | * |
||
179 | * @param QueryInterface $query Database query interface |
||
180 | * @param mixed $navigationID Navigation identifier for table structure |
||
181 | * @param integer $materialID Table parent material identifier |
||
182 | * @param string|null $locale Locale identifier |
||
183 | */ |
||
184 | public function __construct(QueryInterface $query, $navigationID, $materialID, $locale = null) |
||
193 | } |
||
194 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..