Passed
Pull Request — master (#69)
by Manuele
04:40
created

SearchBox::setQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
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
class SearchBox
7
{
8
    /**
9
     * @var string|null
10
     */
11
    private $query;
12
13
    /**
14
     * @return string|null
15
     */
16
    public function getQuery(): ?string
17
    {
18
        return $this->query;
19
    }
20
21
    /**
22
     * @param string|null $query
23
     */
24
    public function setQuery(?string $query): void
25
    {
26
        $this->query = $query;
27
    }
28
}
29