TypeResolveEvent::setType()   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 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