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

SearchBox   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setQuery() 0 3 1
A getQuery() 0 3 1
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