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

AddLabelToQuery::getLabel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
4
namespace CultuurNet\UDB3\Offer\Commands;
5
6
use CultuurNet\UDB3\Label;
7
8
class AddLabelToQuery
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $query;
14
15
    /**
16
     * @var Label
17
     */
18
    protected $label;
19
20
    public function __construct($query, Label $label)
21
    {
22
        $this->query = $query;
23
        $this->label = $label;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getQuery()
30
    {
31
        return $this->query;
32
    }
33
34
    /**
35
     * @return Label
36
     */
37
    public function getLabel()
38
    {
39
        return $this->label;
40
    }
41
}
42