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

Box   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 42
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuery() 0 3 1
A setQuery() 0 3 1
A getResults() 0 3 1
A setResults() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace BitBag\SyliusElasticsearchPlugin\Model;
5
6
use Pagerfanta\Pagerfanta;
7
8
class Box
9
{
10
    /**
11
     * @var string|null
12
     */
13
    private $query;
14
15
    /**
16
     * @var Pagerfanta|null
17
     */
18
    private $results;
19
20
    /**
21
     * @return string|null
22
     */
23
    public function getQuery(): ?string
24
    {
25
        return $this->query;
26
    }
27
28
    /**
29
     * @param string|null $query
30
     */
31
    public function setQuery(?string $query): void
32
    {
33
        $this->query = $query;
34
    }
35
36
    /**
37
     * @return Pagerfanta|null
38
     */
39
    public function getResults(): ?Pagerfanta
40
    {
41
        return $this->results;
42
    }
43
44
    /**
45
     * @param Pagerfanta|null $results
46
     */
47
    public function setResults(?Pagerfanta $results): void
48
    {
49
        $this->results = $results;
50
    }
51
}
52