Completed
Pull Request — master (#238)
by Luc
09:35 queued 04:39
created

AbstractSyncLabels::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace CultuurNet\UDB3\Offer\Commands;
4
5
use CultuurNet\UDB3\LabelCollection;
6
7
abstract class AbstractSyncLabels extends AbstractCommand
8
{
9
    /**
10
     * @var LabelCollection
11
     */
12
    protected $labelCollection;
13
14
    /**
15
     * @param string $itemId
16
     * @param LabelCollection $labelCollection
17
     */
18
    public function __construct($itemId, LabelCollection $labelCollection)
19
    {
20
        parent::__construct($itemId);
21
        $this->labelCollection = $labelCollection;
22
    }
23
24
    /**
25
     * @return LabelCollection
26
     */
27
    public function getLabelCollection()
28
    {
29
        return $this->labelCollection;
30
    }
31
}
32