Completed
Pull Request — master (#328)
by
unknown
07:15
created

AbstractUpdateType::getType()   A

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 CultuurNet\UDB3\Offer\Commands;
4
5
use CultuurNet\UDB3\Event\EventType;
6
7
abstract class AbstractUpdateType extends AbstractCommand
8
{
9
    /**
10
     * @var EventType
11
     */
12
    protected $type;
13
14
    /**
15
     * @param string $itemId
16
     * @param EventType $type
17
     */
18
    public function __construct($itemId, EventType $type)
19
    {
20
        parent::__construct($itemId);
21
        $this->type = $type;
22
    }
23
24
    /**
25
     * @return EventType
26
     */
27
    public function getType()
28
    {
29
        return $this->type;
30
    }
31
}
32