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

Search   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

5 Methods

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