mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 12:33:49 +00:00
apply rector rules
This commit is contained in:
@@ -38,10 +38,9 @@ abstract class AbstractFamilyMember implements HasCenterInterface
|
||||
* @ORM\Column(name="birthdate", type="date_immutable", nullable=true)
|
||||
* @Assert\Date
|
||||
*/
|
||||
private $birthdate;
|
||||
private ?\DateTimeImmutable $birthdate = null;
|
||||
|
||||
/**
|
||||
* @var DateTimeImmutable|null
|
||||
*
|
||||
* @ORM\Column(name="endDate", type="datetime_immutable", nullable=true)
|
||||
* @Assert\Date
|
||||
@@ -50,7 +49,7 @@ abstract class AbstractFamilyMember implements HasCenterInterface
|
||||
* message="The membership's end date should be after the start date"
|
||||
* )
|
||||
*/
|
||||
private $endDate;
|
||||
private ?\DateTimeImmutable $endDate = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
@@ -59,64 +58,51 @@ abstract class AbstractFamilyMember implements HasCenterInterface
|
||||
private $familialSituation;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="firstname", type="string", length=255)
|
||||
*/
|
||||
private $firstname = '';
|
||||
private string $firstname = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="gender", type="string", length=20)
|
||||
*/
|
||||
private $gender = '';
|
||||
private string $gender = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="lastname", type="string", length=255)
|
||||
*/
|
||||
private $lastname = '';
|
||||
private string $lastname = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="link", type="string", length=255)
|
||||
*/
|
||||
private $link = '';
|
||||
private string $link = '';
|
||||
|
||||
/**
|
||||
* @var MaritalStatus
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity="\Chill\PersonBundle\Entity\MaritalStatus"
|
||||
* )
|
||||
*/
|
||||
private $maritalStatus;
|
||||
private ?\Chill\PersonBundle\Entity\MaritalStatus $maritalStatus = null;
|
||||
|
||||
/**
|
||||
* @var Person
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity="\Chill\PersonBundle\Entity\Person"
|
||||
* )
|
||||
*/
|
||||
private $person;
|
||||
private ?\Chill\PersonBundle\Entity\Person $person = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="professionnalSituation", type="text")
|
||||
*/
|
||||
private $professionnalSituation = '';
|
||||
private string $professionnalSituation = '';
|
||||
|
||||
/**
|
||||
* @var DateTimeImmutable
|
||||
*
|
||||
* @ORM\Column(name="startDate", type="datetime_immutable")
|
||||
* @Assert\NotNull
|
||||
* @Assert\Date
|
||||
*/
|
||||
private $startDate;
|
||||
private ?\DateTimeImmutable $startDate = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
Reference in New Issue
Block a user