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...
10
{
11
/** @var null|float */
12
private $minimumLength;
13
14
/**
15
* Enum (days, weeks, months, years)
16
*
17
* @var null|string
18
*/
19
private $units;
20
21
/**
22
* @return null|float
23
*/
24
2
public function getMinimumLength()
25
{
26
2
return $this->minimumLength;
27
}
28
29
/**
30
* @param float $minimumLength
31
*
32
* @return MinimumContractLengthObject
33
*/
34
1
public function setMinimumLength(float $minimumLength): self
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.