Completed
Pull Request — master (#91)
by Piotr
03:42
created

ChangePasswordEvent::getUser()   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
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 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 FSi\Bundle\AdminSecurityBundle\Security\User\ChangeablePasswordInterface;
13
use Symfony\Component\EventDispatcher\Event;
14
15
class ChangePasswordEvent extends Event
16
{
17
    /**
18
     * @var ChangeablePasswordInterface
19
     */
20
    private $user;
21
22
    /**
23
     * @param ChangeablePasswordInterface $user
24
     */
25
    function __construct(ChangeablePasswordInterface $user)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
26
    {
27
        $this->user = $user;
28
    }
29
30
    /**
31
     * @return ChangeablePasswordInterface
32
     */
33
    public function getUser()
34
    {
35
        return $this->user;
36
    }
37
}
38