| 1 | <?php |
||
| 9 | class FieldDeleteEvent extends FieldChangeEvent |
||
| 10 | { |
||
| 11 | use SerializesModels; |
||
| 12 | |||
| 13 | public $project_key; |
||
| 14 | |||
| 15 | public $field_key; |
||
| 16 | |||
| 17 | public $field_type; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new event instance. |
||
| 21 | * |
||
| 22 | * @return void |
||
|
|
|||
| 23 | */ |
||
| 24 | public function __construct($project_key, $field_id, $field_key, $field_type) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the channels the event should be broadcast on. |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function broadcastOn() |
||
| 41 | } |
||
| 42 |
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.