Completed
Push — master ( d67956...a656c9 )
by Piotr
11s
created

UserEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * (c) FSi sp. z o.o. <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace FSi\Bundle\AdminSecurityBundle\Event;
11
12
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
13
use Symfony\Component\EventDispatcher\Event;
14
15
class UserEvent extends Event
16
{
17
    /**
18
     * @var AdvancedUserInterface
19
     */
20
    private $user;
21
22
    /**
23
     * @param AdvancedUserInterface $user
24
     */
25
    function __construct(AdvancedUserInterface $user)
26
    {
27
        $this->user = $user;
28
    }
29
30
    /**
31
     * @return AdvancedUserInterface
32
     */
33
    public function getUser()
34
    {
35
        return $this->user;
36
    }
37
}
38