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
use ImmutableTrait, SerializableTrait;
12
13
/**
14
* @var int
15
*/
16
private $houseId;
17
18
/**
19
* @var string
20
*/
21
private $name;
22
23
/**
24
* @var int
25
*/
26
private $size;
27
28
/**
29
* @var int
30
*/
31
private $rent;
32
33
/**
34
* @var string
35
*/
36
private $status;
37
38
/**
39
* House constructor.
40
* @param int $id
41
* @param string $name
42
* @param int $size
43
* @param int $rent
44
* @param string $status
45
* @throws ImmutableException
46
*/
47
public function __construct(int $id, string $name, int $size, int $rent, string $status)
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.