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...
17
{
18
//<editor-fold desc="Fields">
19
/** @var mixed */
20
private $referenceValue;
21
/** @var string */
22
private $referenceName;
23
//</editor-fold desc="Fields">
24
25
//<editor-fold desc="Constructor">
26
/**
27
* ReferenceException constructor.
28
* @param $referenceValue
29
* @param string $referenceName
30
*/
31
public function __construct($referenceValue, string $referenceName)
32
{
33
$this->referenceName = $referenceName;
34
$this->referenceValue = $referenceValue;
35
36
$message = "The reference $referenceValue of $referenceName is not existing!";
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.