TypeResolveEvent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 31
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getType() 0 4 1
A setType() 0 4 1
A getChain() 0 4 1
1
<?php
2
3
namespace Padawan\Domain\Event;
4
5
use Padawan\Domain\Project\FQCN;
6
use Padawan\Domain\Project\Chain;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class TypeResolveEvent extends Event
10
{
11
    public function __construct(Chain $chain = null, $type = null)
12
    {
13
        $this->chain = $chain;
14
        $this->type = $type;
15
    }
16
17
    /**
18
     * @return FQCN
19
     */
20
    public function getType()
21
    {
22
        return $this->type;
23
    }
24
    public function setType($fqcn = null)
25
    {
26
        $this->type = $fqcn;
27
    }
28
29
    /**
30
     * @return Chain
31
     */
32
    public function getChain()
33
    {
34
        return $this->chain;
35
    }
36
37
    private $chain;
38
    private $type;
39
}
40