Passed
Push — master ( cc4e78...1262d4 )
by Damian
04:08
created

Search::setBox()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BitBag\SyliusElasticsearchPlugin\Model;
6
7
class Search
8
{
9
    /** @var SearchBox|null */
10
    private $box;
11
12
    /** @var SearchFacets|null */
13
    private $facets;
14
15
    public function __construct()
16
    {
17
        $this->box = new SearchBox();
18
        $this->facets = new SearchFacets();
19
    }
20
21
    public function getBox(): ?SearchBox
22
    {
23
        return $this->box;
24
    }
25
26
    public function setBox(?SearchBox $box): void
27
    {
28
        $this->box = $box;
29
    }
30
31
    public function getFacets(): ?SearchFacets
32
    {
33
        return $this->facets;
34
    }
35
36
    public function setFacets(?SearchFacets $facets): void
37
    {
38
        $this->facets = $facets;
39
    }
40
}
41