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

Box::setResults()   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 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