| 1 | <?php |
||
| 8 | class WikiEvent extends Event |
||
| 9 | { |
||
| 10 | use SerializesModels; |
||
| 11 | |||
| 12 | public $project_key; |
||
| 13 | |||
| 14 | public $user; |
||
| 15 | |||
| 16 | public $param; |
||
| 17 | /** |
||
| 18 | * Create a new event instance. |
||
| 19 | * |
||
| 20 | * @return void |
||
|
|
|||
| 21 | */ |
||
| 22 | public function __construct($project_key, $user, array $param=[]) |
||
| 28 | /** |
||
| 29 | * Get the channels the event should be broadcast on. |
||
| 30 | * |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | public function broadcastOn() |
||
| 37 | } |
||
| 38 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.