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

CommentEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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