-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor de la liste des antennes en DTOs
- Loading branch information
Showing
30 changed files
with
871 additions
and
690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace AppBundle\Antennes; | ||
|
||
/** | ||
* @readonly | ||
*/ | ||
final class Antenne | ||
{ | ||
public string $code; | ||
public string $label; | ||
public ?Meetup $meetup; | ||
public string $logoUrl; | ||
public Socials $socials; | ||
public ?Map $map; | ||
|
||
/** @var array<string>|null */ | ||
public ?array $departments; | ||
|
||
/** @var array<string>|null */ | ||
public ?array $pays; | ||
|
||
public bool $hideOnOfficesPage; | ||
|
||
/** | ||
* @param string[] $departments | ||
* @param string[]|null $pays | ||
*/ | ||
public function __construct( | ||
string $code, | ||
string $label, | ||
?Meetup $meetup, | ||
string $logoUrl, | ||
Socials $socials, | ||
?Map $map, | ||
?array $departments = null, | ||
?array $pays = null, | ||
bool $hideOnOfficesPage = false | ||
) { | ||
$this->code = $code; | ||
$this->label = $label; | ||
$this->meetup = $meetup; | ||
$this->logoUrl = $logoUrl; | ||
$this->socials = $socials; | ||
$this->map = $map; | ||
$this->hideOnOfficesPage = $hideOnOfficesPage; | ||
$this->departments = $departments; | ||
$this->pays = $pays; | ||
} | ||
} |
Oops, something went wrong.