Completed
Pull Request — master (#10)
by Fèvre
04:32 queued 02:08
created

CommentEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace Xetaravel\Events;
3
4
use Xetaravel\Models\User;
5
6
class CommentEvent
7
{
8
    public $user;
9
10
    /**
11
     * Create a new event instance.
12
     *
13
     * @param \Xetaravel\Models\User $user
14
     *
15
     * @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...
16
     */
17
    public function __construct(User $user)
18
    {
19
        $this->user = $user;
20
    }
21
}
22