1 | <?php |
||
8 | class MessagesBroadcasted |
||
9 | { |
||
10 | use Dispatchable, SerializesModels; |
||
11 | |||
12 | /** |
||
13 | * The amount of messages sent. |
||
14 | * |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $sentMessagesCount; |
||
18 | |||
19 | /** |
||
20 | * Initialize the event. |
||
21 | * |
||
22 | * @param int $sentMessagesCount |
||
23 | * @return void |
||
|
|||
24 | */ |
||
25 | public function __construct(int $sentMessagesCount = 0) |
||
29 | } |
||
30 |
Adding a
@return
annotation 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.