<?phpnamespace App\Entity;use App\Repository\MembershipIndividualRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use App\Entity\MembersAsso;#[ORM\Entity(repositoryClass: MembershipIndividualRepository::class)]class MembershipIndividual{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $name = null; #[ORM\Column(type: Types::DATE_MUTABLE)] private ?\DateTimeInterface $birth_date = null; #[ORM\Column(length: 510)] private ?string $address = null; #[ORM\Column(length: 255)] private ?string $mail = null; #[ORM\Column(length: 255)] private ?string $tel = null; #[ORM\Column(length: 255)] private ?string $job = null; #[ORM\Column(length: 5)] private ?string $img_law = null; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?\DateTimeInterface $date_creation = null; #[ORM\ManyToOne(targetEntity: MembersAsso::class, inversedBy: 'membershipIndividuals')] private $member_of; public function __construct() { $this->date_creation = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): static { $this->name = $name; return $this; } public function getBirthDate(): ?\DateTimeInterface { return $this->birth_date; } public function setBirthDate(\DateTimeInterface $birth_date): static { $this->birth_date = $birth_date; return $this; } public function getAddress(): ?string { return $this->address; } public function setAddress(string $address): static { $this->address = $address; return $this; } public function getMail(): ?string { return $this->mail; } public function setMail(string $mail): static { $this->mail = $mail; return $this; } public function getTel(): ?string { return $this->tel; } public function setTel(string $tel): static { $this->tel = $tel; return $this; } public function getJob(): ?string { return $this->job; } public function setJob(string $job): static { $this->job = $job; return $this; } public function getImgLaw(): ?string { return $this->img_law; } public function setImgLaw(string $img_law): static { $this->img_law = $img_law; return $this; } public function getDateCreation(): ?\DateTimeInterface { return $this->date_creation; } public function setDateCreation(\DateTimeInterface $date_creation): static { $this->date_creation = $date_creation; return $this; } public function getMemberOf(): ?MembersAsso { return $this->member_of; } public function setMemberOf(?MembersAsso $member_of): self { $this->member_of = $member_of; return $this; }}