Completed
Pull Request — master (#135)
by Kristof
05:16
created

AddLabelToMultiple   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 38
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getOfferIdentifiers() 0 4 1
A getLabel() 0 4 1
1
<?php
2
3
4
namespace CultuurNet\UDB3\Offer\Commands;
5
6
use CultuurNet\UDB3\Label;
7
use CultuurNet\UDB3\Offer\OfferIdentifierCollection;
8
9
class AddLabelToMultiple
10
{
11
    /**
12
     * @var OfferIdentifierCollection
13
     */
14
    protected $offerIdentifiers;
15
16
    /**
17
     * @var Label
18
     */
19
    protected $label;
20
21
    /**
22
     * @param OfferIdentifierCollection $offerIdentifiers
23
     * @param Label $label
24
     */
25
    public function __construct(OfferIdentifierCollection $offerIdentifiers, Label $label)
26
    {
27
        $this->offerIdentifiers = $offerIdentifiers;
28
        $this->label = $label;
29
    }
30
31
    /**
32
     * @return OfferIdentifierCollection
33
     */
34
    public function getOfferIdentifiers()
35
    {
36
        return $this->offerIdentifiers;
37
    }
38
39
    /**
40
     * @return Label
41
     */
42
    public function getLabel()
43
    {
44
        return $this->label;
45
    }
46
}
47