1 | <?php |
||
11 | class StatisticsUpdated implements ShouldBroadcast |
||
12 | { |
||
13 | use SerializesModels; |
||
14 | |||
15 | /** @var \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry */ |
||
16 | protected $webSocketsStatisticsEntry; |
||
17 | |||
18 | public function __construct(WebSocketsStatisticsEntry $webSocketsStatisticsEntry) |
||
22 | |||
23 | public function broadcastWith() |
||
33 | |||
34 | public function broadcastOn() |
||
40 | |||
41 | public function broadcastAs() |
||
45 | } |
||
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.