Search   A
last analyzed

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 getBox() 0 3 1
A __construct() 0 4 1
A setFacets() 0 3 1
A getFacets() 0 3 1
A setBox() 0 3 1
1
<?php
2
3
/*
4
 * This file was created by developers working at BitBag
5
 * Do you need more information about us and what we do? Visit our https://bitbag.io website!
6
 * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
7
*/
8
9
declare(strict_types=1);
10
11
namespace BitBag\SyliusElasticsearchPlugin\Model;
12
13
class Search
14
{
15
    /** @var SearchBox|null */
16
    private $box;
17
18
    /** @var SearchFacets|null */
19
    private $facets;
20
21
    public function __construct()
22
    {
23
        $this->box = new SearchBox();
24
        $this->facets = new SearchFacets();
25
    }
26
27
    public function getBox(): ?SearchBox
28
    {
29
        return $this->box;
30
    }
31
32
    public function setBox(?SearchBox $box): void
33
    {
34
        $this->box = $box;
35
    }
36
37
    public function getFacets(): ?SearchFacets
38
    {
39
        return $this->facets;
40
    }
41
42
    public function setFacets(?SearchFacets $facets): void
43
    {
44
        $this->facets = $facets;
45
    }
46
}
47