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...
14
/**
15
* @var Variable
16
*/
17
private $left;
18
19
/**
20
* @var Variable
21
*/
22
private $right;
23
24
67
public function __construct($name, Variable $left, Variable $right) {
25
67
parent::__construct($name);
26
67
$this->left = $left;
27
67
$this->right = $right;
28
67
}
29
30
/**
31
* @return Variable
32
*/
33
18
public function left() {
34
18
return $this->left;
35
}
36
37
/**
38
* @return Variable
39
*/
40
18
public function right() {
41
18
return $this->right;
42
}
43
44
/**
45
* @inheritdoc
46
*/
47
public function explain($text) {
48
$v = new ButNot($this->name(), $this->left, $this->right);
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.