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...
23
{
24
use ParametersTrait;
25
26
/**
27
* @var string
28
*/
29
private $field;
30
31
/**
32
* @var array
33
*/
34
private $terms;
35
36
/**
37
* Constructor.
38
*
39
* @param string $field Field name
40
* @param array $terms An array of terms
41
* @param array $parameters Optional parameters
42
*/
43
public function __construct($field, $terms, array $parameters = [])
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.