AbstractViewComponent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 44
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 2

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getIndex() 0 4 1
A setRenderEvent() 0 4 1
A getRenderEvent() 0 4 1
1
<?php
2
3
namespace WebinoViewLib\Component;
4
5
use WebinoAppLib\Event\AppEvent;
6
use WebinoAppLib\Event\DispatchEvent;
7
use WebinoAppLib\Feature\HttpListener;
8
use WebinoConfigLib\Feature\FeatureInterface;
9
use WebinoDomLib\Dom\Config\SpecConfigAggregateInterface;
10
use WebinoDomLib\Dom\NodeInterface;
11
use WebinoDomLib\Event\RenderEvent;
12
use WebinoEventLib\ListenerAggregateTrait;
13
use WebinoViewLib\Feature\NodeView;
14
use WebinoViewLib\Feature\ViewListener;
15
use Zend\EventManager\ListenerAggregateInterface;
16
17
/**
18
 * Class AbstractViewComponent
19
 */
20
abstract class AbstractViewComponent extends AbstractBaseViewComponent implements
21
    ComponentStateInterface
22
{
23
    use ComponentStateTrait;
24
25
    // TODO concept
26
    public function getIndex()
27
    {
28
        return 0;
29
    }
30
31
    /**
32
     * @TODO concept
33
     * @var RenderEvent
34
     */
35
    private $renderEvent;
36
37
    /**
38
     * TODO concept
39
     * @param RenderEvent $event
40
     */
41
    protected function setRenderEvent(RenderEvent $event)
42
    {
43
        $this->renderEvent = $event;
44
    }
45
46
    /**
47
     * TODO concept
48
     * @return RenderEvent
49
     */
50
    protected function getRenderEvent()
51
    {
52
        return $this->renderEvent;
53
    }
54
55
56
    /**
57
     * @TODO concept
58
     */
59
//    public function __clone()
0 ignored issues
show
Unused Code Comprehensibility introduced by
47% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
60
//    {
61
//        $this->state = clone $this->getState();
62
//    }
63
}
64