| 1 | <?php |
||
| 8 | class EventListener implements ShouldQueue { |
||
| 9 | /** |
||
| 10 | * Create the event listener. |
||
| 11 | * |
||
| 12 | * @return EventListener |
||
|
|
|||
| 13 | */ |
||
| 14 | public function __construct() { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Handle the event. |
||
| 20 | * |
||
| 21 | * @param SomeEvent $event |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function handle(ConfigWasUpdated $event) { |
||
| 27 | } |
||
| 28 |
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.