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

AddLabelToQuery   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getQuery() 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
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