UserWasCreated::__construct()   A
last analyzed

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 namespace Anomaly\UsersModule\User\Event;
2
3
use Anomaly\UsersModule\User\Contract\UserInterface;
4
5
/**
6
 * Class UserWasCreated
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 */
12
class UserWasCreated
13
{
14
15
    /**
16
     * The user object.
17
     *
18
     * @var UserInterface
19
     */
20
    protected $user;
21
22
    /**
23
     * Create a new UserWasCreated instance.
24
     *
25
     * @param UserInterface $user
26
     */
27
    public function __construct(UserInterface $user)
28
    {
29
        $this->user = $user;
30
    }
31
32
    /**
33
     * Get the user.
34
     *
35
     * @return UserInterface
36
     */
37
    public function getUser()
38
    {
39
        return $this->user;
40
    }
41
}
42