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

ChangePasswordEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

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