ArticleEvent::getResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Victoire\Bundle\BlogBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Symfony\Component\HttpFoundation\Response;
7
use Victoire\Bundle\BlogBundle\Entity\Article;
8
9
class ArticleEvent extends Event
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
10
{
11
    private $response;
12
    private $article;
13
14
    /**
15
     * Constructor.
16
     *
17
     * @param Article $article
18
     */
19
    public function __construct(Article $article)
20
    {
21
        $this->article = $article;
22
    }
23
24
    /**
25
     * Get the article.
26
     *
27
     * @return Article
28
     */
29
    public function getArticle()
30
    {
31
        return $this->article;
32
    }
33
34
    /**
35
     * Get response.
36
     *
37
     * @return Response
38
     */
39
    public function getResponse()
40
    {
41
        return $this->response;
42
    }
43
44
    /**
45
     * Set response.
46
     *
47
     * @param string $response
48
     *
49
     * @return $this
50
     */
51
    public function setResponse(Response $response)
52
    {
53
        $this->response = $response;
54
55
        return $this;
56
    }
57
}
58