Passed
Pull Request — master (#69)
by Manuele
03:19
created

Search   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 47
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getBox() 0 3 1
A setFacets() 0 3 1
A getFacets() 0 3 1
A setBox() 0 3 1
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