src/Entity/MembershipIndividual.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MembershipIndividualRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use App\Entity\MembersAsso;
  9. #[ORM\Entity(repositoryClassMembershipIndividualRepository::class)]
  10. class MembershipIndividual
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $name null;
  18.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  19.     private ?\DateTimeInterface $birth_date null;
  20.     #[ORM\Column(length510)]
  21.     private ?string $address null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $mail null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $tel null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $job null;
  28.     #[ORM\Column(length5)]
  29.     private ?string $img_law null;
  30.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  31.     private ?\DateTimeInterface $date_creation null;
  32.     #[ORM\ManyToOne(targetEntityMembersAsso::class, inversedBy'membershipIndividuals')]
  33.     private $member_of;
  34.     public function __construct() {
  35.         $this->date_creation = new \DateTime();
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getName(): ?string
  42.     {
  43.         return $this->name;
  44.     }
  45.     public function setName(string $name): static
  46.     {
  47.         $this->name $name;
  48.         return $this;
  49.     }
  50.     public function getBirthDate(): ?\DateTimeInterface
  51.     {
  52.         return $this->birth_date;
  53.     }
  54.     public function setBirthDate(\DateTimeInterface $birth_date): static
  55.     {
  56.         $this->birth_date $birth_date;
  57.         return $this;
  58.     }
  59.     public function getAddress(): ?string
  60.     {
  61.         return $this->address;
  62.     }
  63.     public function setAddress(string $address): static
  64.     {
  65.         $this->address $address;
  66.         return $this;
  67.     }
  68.     public function getMail(): ?string
  69.     {
  70.         return $this->mail;
  71.     }
  72.     public function setMail(string $mail): static
  73.     {
  74.         $this->mail $mail;
  75.         return $this;
  76.     }
  77.     public function getTel(): ?string
  78.     {
  79.         return $this->tel;
  80.     }
  81.     public function setTel(string $tel): static
  82.     {
  83.         $this->tel $tel;
  84.         return $this;
  85.     }
  86.     public function getJob(): ?string
  87.     {
  88.         return $this->job;
  89.     }
  90.     public function setJob(string $job): static
  91.     {
  92.         $this->job $job;
  93.         return $this;
  94.     }
  95.     public function getImgLaw(): ?string
  96.     {
  97.         return $this->img_law;
  98.     }
  99.     public function setImgLaw(string $img_law): static
  100.     {
  101.         $this->img_law $img_law;
  102.         return $this;
  103.     }
  104.     public function getDateCreation(): ?\DateTimeInterface
  105.     {
  106.         return $this->date_creation;
  107.     }
  108.     public function setDateCreation(\DateTimeInterface $date_creation): static
  109.     {
  110.         $this->date_creation $date_creation;
  111.         return $this;
  112.     }
  113.     public function getMemberOf(): ?MembersAsso
  114.     {
  115.         return $this->member_of;
  116.     }
  117.     public function setMemberOf(?MembersAsso $member_of): self
  118.     {
  119.         $this->member_of $member_of;
  120.         return $this;
  121.     }
  122. }