Completed
Pull Request — master (#447)
by Alexandru
01:23
created

MessagesBroadcasted::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace BeyondCode\LaravelWebSockets\Events;
4
5
use Illuminate\Foundation\Events\Dispatchable;
6
use Illuminate\Queue\SerializesModels;
7
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
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

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.

Loading history...
24
     */
25
    public function __construct(int $sentMessagesCount = 0)
26
    {
27
        $this->sentMessagesCount = $sentMessagesCount;
28
    }
29
}
30