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

AccountRecoveryDataEditEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 44
ccs 0
cts 17
cp 0
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getAccountRecoveryData() 0 3 1
A getResponse() 0 3 1
A setResponse() 0 5 1
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