Failed Conditions
Push — issue#797 ( 58f434...96dbc7 )
by Guilherme
04:33
created

getAccountRecoveryData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace LoginCidadao\AccountRecoveryBundle\Event;
12
13
use LoginCidadao\AccountRecoveryBundle\Entity\AccountRecoveryData;
14
use Symfony\Component\EventDispatcher\Event;
15
use Symfony\Component\HttpFoundation\Response;
16
17
class AccountRecoveryDataEditEvent extends Event
18
{
19
    /** @var AccountRecoveryData */
20
    private $accountRecoveryData;
21
22
    /** @var Response */
23
    private $response;
24
25
    /**
26
     * AccountRecoveryDataEditEvent constructor.
27
     * @param AccountRecoveryData $accountRecoveryData
28
     * @param Response|null $response
29
     */
30
    public function __construct(AccountRecoveryData $accountRecoveryData, Response $response = null)
31
    {
32
        $this->accountRecoveryData = $accountRecoveryData;
33
        $this->response = $response;
34
    }
35
36
    /**
37
     * @return AccountRecoveryData
38
     */
39
    public function getAccountRecoveryData(): AccountRecoveryData
40
    {
41
        return $this->accountRecoveryData;
42
    }
43
44
    /**
45
     * @return Response
46
     */
47
    public function getResponse(): ?Response
48
    {
49
        return $this->response;
50
    }
51
52
    /**
53
     * @param Response $response
54
     * @return AccountRecoveryDataEditEvent
55
     */
56
    public function setResponse(Response $response): AccountRecoveryDataEditEvent
57
    {
58
        $this->response = $response;
59
60
        return $this;
61
    }
62
}
63