| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function beforePerform() |
||
| 8 | { |
||
| 9 | parent::beforePerform(); |
||
| 10 | $query = $this->getDataProvider()->query; |
||
| 11 | $query->andWhere([ |
||
| 12 | 'time_from' => '2020-08-01', |
||
| 13 | 'time_till' => '2020-08-31', |
||
| 14 | ]); |
||
| 15 | $query->andWhere([ |
||
| 16 | 'object_id' => $this->request->get('id'), |
||
|
|
|||
| 17 | 'groupby' => 'server_traf_day', |
||
| 18 | ]); |
||
| 19 | } |
||
| 20 | } |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.