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...
21
{
22
/**
23
* @var Operand|string
24
*/
25
private $field;
26
27
/**
28
* @var string|null
29
*/
30
private $dqlAlias;
31
32
/**
33
* @param Operand|string $field
34
* @param string|null $dqlAlias
35
*/
36
public function __construct($field, $dqlAlias = null)
37
{
38
$this->field = $field;
39
$this->dqlAlias = $dqlAlias;
40
}
41
42
/**
43
* @param QueryBuilder $qb
44
* @param string $dqlAlias
45
*
46
* @return string
47
*/
48
public function getFilter(QueryBuilder $qb, $dqlAlias)
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.