This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
12
{
13
/**
14
* Constructs a SpanContaining query object.
15
*
16
* @param AbstractSpanQuery $little OPTIONAL
17
* @param AbstractSpanQuery $big OPTIONAL
18
*/
19
public function __construct(AbstractSpanQuery $little = null, AbstractSpanQuery $big = null)
20
{
21
if (null !== $little) {
22
$this->setLittle($little);
23
}
24
25
if (null !== $big) {
26
$this->setBig($big);
27
}
28
}
29
30
/**
31
* @param AbstractSpanQuery $little
32
*
33
* @return $this
34
*/
35
public function setLittle(AbstractSpanQuery $little)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.