Completed
Pull Request — master (#2737)
by Jeroen
17:30 queued 02:36
created

ChangePasswordSuccessEvent::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Kunstmaan\AdminBundle\Event;
4
5
use Kunstmaan\AdminBundle\Entity\UserInterface;
6
use Symfony\Component\HttpFoundation\Request;
7
use Symfony\Component\HttpFoundation\Response;
8
9
final class ChangePasswordSuccessEvent extends BcEvent
10
{
11
    /** @var UserInterface */
12
    private $user;
13
14
    /** @var Response */
15
    private $response;
16
17
    public function __construct(UserInterface $user, Response $response)
18
    {
19
        $this->user = $user;
20
        $this->response = $response;
21
    }
22
23
    public function getUser(): UserInterface
24
    {
25
        return $this->user;
26
    }
27
28
    public function getResponse(): Response
29
    {
30
        return $this->response;
31
    }
32
33
    public function setResponse(Response $response)
34
    {
35
        $this->response = $response;
36
    }
37
}
38