ViewReferenceEvent::getView()   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\ViewReferenceBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Victoire\Bundle\CoreBundle\Entity\WebViewInterface;
7
8
class ViewReferenceEvent extends Event
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
9
{
10
    private $view;
11
12
    /**
13
     * ViewReferenceEvent constructor.
14
     *
15
     * @param WebViewInterface $view
16
     */
17
    public function __construct(WebViewInterface $view)
18
    {
19
        $this->view = $view;
20
    }
21
22
    /**
23
     * @return WebViewInterface
24
     */
25
    public function getView()
26
    {
27
        return $this->view;
28
    }
29
30
    /**
31
     * @param WebViewInterface $view
32
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
33
    public function setView(WebViewInterface $view)
34
    {
35
        $this->view = $view;
36
37
        return $this;
38
    }
39
}
40