Passed
Push — master ( cc4e78...1262d4 )
by Damian
04:08
created

SearchBox   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 13
rs 10
c 1
b 0
f 0
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
    /** @var string|null */
9
    private $query;
10
11
    public function getQuery(): ?string
12
    {
13
        return $this->query;
14
    }
15
16
    public function setQuery(?string $query): void
17
    {
18
        $this->query = $query;
19
    }
20
}
21