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...
11
{
12
use ImmutableTrait, SerializableTrait;
13
14
/**
15
* @var int
16
*/
17
private $id;
18
19
/**
20
* @var string
21
*/
22
private $type;
23
24
/**
25
* @var string
26
*/
27
private $news;
28
29
/**
30
* @var string
31
*/
32
private $apiUrl;
33
34
/**
35
* @var string
36
*/
37
private $tibiaUrl;
38
39
/**
40
* @var Carbon
41
*/
42
private $date;
43
44
/**
45
* News constructor.
46
* @param int $id
47
* @param string $type
48
* @param string $news
49
* @param string $apiUrl
50
* @param string $tibiaUrl
51
* @param Carbon $date
52
* @throws ImmutableException
53
*/
54
public function __construct(int $id, string $type, string $news, string $apiUrl, string $tibiaUrl, Carbon $date)
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.