ViewReferenceEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 32
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getView() 0 4 1
A setView() 0 6 1
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