Passed
Pull Request — master (#69)
by Manuele
03:19
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
declare(strict_types=1);
3
4
namespace BitBag\SyliusElasticsearchPlugin\Model;
5
6
use Pagerfanta\Pagerfanta;
7
8
class Search
9
{
10
    /**
11
     * @var Box|null
12
     */
13
    private $box;
14
15
    /**
16
     * @var array|null
17
     */
18
    private $facets;
19
20
    public function __construct()
21
    {
22
        $this->box = new Box();
23
    }
24
25
    /**
26
     * @return Box|null
27
     */
28
    public function getBox(): ?Box
29
    {
30
        return $this->box;
31
    }
32
33
    /**
34
     * @param Box|null $box
35
     */
36
    public function setBox(?Box $box): void
37
    {
38
        $this->box = $box;
39
    }
40
41
    /**
42
     * @return array|null
43
     */
44
    public function getFacets(): ?array
45
    {
46
        return $this->facets;
47
    }
48
49
    /**
50
     * @param array|null $facets
51
     */
52
    public function setFacets(?array $facets): void
53
    {
54
        $this->facets = $facets;
55
    }
56
}
57