1 | <?php |
||
4 | class ExamplePubSubWebSocketRoute extends ExampleWebSocketRoute |
||
5 | { |
||
6 | use \PHPDaemon\Traits\StaticObjectWatchdog; |
||
7 | |||
8 | /** |
||
9 | * Called when new frame received. |
||
10 | * @param string Frame's contents. |
||
11 | * @param integer Frame's type. |
||
12 | * @return void |
||
13 | */ |
||
14 | public function onFrame($data, $type) |
||
29 | |||
30 | public function sendObject($obj) |
||
34 | |||
35 | public function onFinish() |
||
39 | } |
||
40 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.