Completed
Pull Request — master (#238)
by Luc
05:33
created

AbstractSyncLabels   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLabels() 0 4 1
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 $labels;
13
14
    /**
15
     * @param string $itemId
16
     * @param LabelCollection $labels
17
     */
18
    public function __construct($itemId, LabelCollection $labels)
19
    {
20
        parent::__construct($itemId);
21
        $this->labels = $labels;
22
    }
23
24
    /**
25
     * @return LabelCollection
26
     */
27
    public function getLabels()
28
    {
29
        return $this->labels;
30
    }
31
}
32