Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function broadcastWith() |
||
24 | { |
||
25 | return [ |
||
26 | 'time' => (string) $this->webSocketsStatisticsEntry->created_at, |
||
|
|||
27 | 'app_id' => $this->webSocketsStatisticsEntry->app_id, |
||
28 | 'peak_connection_count' => $this->webSocketsStatisticsEntry->peak_connection_count, |
||
29 | 'websocket_message_count' => $this->webSocketsStatisticsEntry->websocket_message_count, |
||
30 | 'api_message_count' => $this->webSocketsStatisticsEntry->api_message_count, |
||
31 | ]; |
||
32 | } |
||
33 | |||
46 |
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@property
annotation 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.