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...
8
{
9
/**
10
* @var Url
11
*/
12
private $website;
13
14
public function __construct(
15
string $organizerId,
16
Url $website
17
) {
18
parent::__construct($organizerId);
19
$this->website = $website;
20
}
21
22
public function getWebsite(): Url
23
{
24
return $this->website;
25
}
26
27
public function serialize(): array
28
{
29
return parent::serialize() + [
30
'website' => (string) $this->getWebsite(),
31
];
32
}
33
34
public static function deserialize(array $data): WebsiteUpdated
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.