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

UserEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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