Test Failed
Push — master ( 8bf0b7...020f1d )
by David
15:40 queued 10:40
created

TokenNotFoundCartEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
eloc 4
c 2
b 1
f 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setResponse() 0 3 1
A getResponse() 0 3 1
1
<?php
2
3
namespace GGGGino\SkuskuCartBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Symfony\Component\HttpFoundation\Response;
7
8
/**
9
 * Class TokenNotFoundCartEvent
10
 * @package GGGGino\SkuskuCartBundle\Event
11
 */
12
class TokenNotFoundCartEvent extends Event
13
{
14
    /**
15
     * @var Response
16
     */
17
    protected $response;
18
19
    /**
20
     * @param Response $response
21
     */
22
    public function setResponse($response)
23
    {
24
        $this->response = $response;
25
    }    
26
27
    /**
28
     * @return Response
29
     */
30
    public function getResponse()
31
    {
32
        return $this->response;
33
    }    
34
35
}
36