src/Entity/Childs.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChildsRepository;
  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. #[ORM\Entity(repositoryClassChildsRepository::class)]
  9. class Childs
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length20nullabletrue)]
  16.     private ?string $status null;
  17.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  18.     private ?\DateTimeInterface $dob null;
  19.     #[ORM\Column(length50)]
  20.     private ?string $fathername null
  21.     #[ORM\Column(length15nullabletrue)]
  22.     private ?string $fatherphone null;
  23.     #[ORM\Column(length15nullabletrue)]
  24.     private ?string $cityborn null;
  25.     #[ORM\Column(length50nullabletrue)]
  26.     private ?string $fatheremail null;
  27.     #[ORM\Column(length50nullabletrue)]
  28.     private ?string $motheremail null;
  29.     #[ORM\Column(length50nullabletrue)]
  30.     private ?string $fatherhebrewname null;
  31.     #[ORM\Column(length50nullabletrue)]
  32.     private ?string $mothername null
  33.     #[ORM\Column(length15nullabletrue)]
  34.     private ?string $motherphone null;
  35.     #[ORM\Column(length50nullabletrue)]
  36.     private ?string $motherhebrewname null;
  37.     #[ORM\Column(length50nullabletrue)]
  38.     private ?string $doctorname null;
  39.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  40.     private ?string $doctoraddress null;
  41.     #[ORM\Column(length15nullabletrue)]
  42.     private ?string $doctorphone null;
  43.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  44.     private ?string $image null;
  45.     #[ORM\Column(length100)]
  46.     private ?string $email null;
  47.     #[ORM\Column(length50nullabletrue)]
  48.     private ?string $lastname null;
  49.     #[ORM\Column(length50)]
  50.     private ?string $firstname null;
  51.     #[ORM\Column(length15nullabletrue)]
  52.     private ?string $phone null;
  53.     #[ORM\Column(length10)]
  54.     private ?string $gender null;
  55.     #[ORM\ManyToOne(inversedBy'child')]
  56.     #[ORM\JoinColumn(nullablefalse)]
  57.     private ?Schools $school null
  58.     #[ORM\Column(nullabletrue)]
  59.     private ?int $referrals null;
  60.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  61.     private ?\DateTimeInterface $sessionseta null;
  62.     #[ORM\OneToMany(mappedBy'child'targetEntitySessions::class)]
  63.     private Collection $sessions
  64.     #[ORM\ManyToMany(targetEntityUser::class, inversedBy'childs')]
  65.     private Collection $user;
  66.     #[ORM\Column(length450nullabletrue)]
  67.     private ?string $commentaire null
  68.     #[ORM\Column(length50nullabletrue)]
  69.     private ?string $doctorcity null;
  70.     #[ORM\Column(length50nullabletrue)]
  71.     private ?string $doctorzipcode null;
  72.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  73.     private ?string $payment null;
  74.     #[ORM\Column(typeTypes::SMALLINTnullabletrue)]
  75.     private ?int $sessionsemail null;
  76.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  77.     private array $fileone = [];
  78.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  79.     private array $filetwo = [];
  80.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  81.     private array $filethree = [];
  82.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  83.     private ?\DateTimeInterface $creationdate null;
  84.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  85.     private ?\DateTimeInterface $finishdate null;
  86.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  87.     private ?string $paymentmethod null;
  88.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  89.     private ?string $childaddress null;
  90.     #[ORM\Column(length50nullabletrue)]
  91.     private ?string $childzipcode null;
  92.     #[ORM\Column(length50nullabletrue)]
  93.     private ?string $childcity null;
  94.     public function __construct()
  95.     {
  96.         $this->sessions = new ArrayCollection();
  97.         $this->user = new ArrayCollection();
  98.     }
  99.     public function getId(): ?int
  100.     {
  101.         return $this->id;
  102.     } 
  103.     public function getStatus(): ?string
  104.     {
  105.         return $this->status;
  106.     }
  107.     public function setStatus(?string $status): self
  108.     {
  109.         $this->status $status;
  110.         return $this;
  111.     }
  112.     public function getCityBorn(): ?string
  113.     {
  114.         return $this->cityborn;
  115.     }
  116.     public function setCityBorn(?string $cityborn): self
  117.     {
  118.         $this->cityborn $cityborn;
  119.         return $this;
  120.     }
  121.     public function getDob(): ?\DateTimeInterface
  122.     {
  123.         return $this->dob;
  124.     }
  125.     public function setDob(?\DateTimeInterface $dob): self
  126.     {
  127.         $this->dob $dob;
  128.         return $this;
  129.     }
  130.     public function getFathername(): ?string
  131.     {
  132.         return $this->fathername;
  133.     }
  134.     public function setFathername(string $fathername): self
  135.     {
  136.         $this->fathername $fathername;
  137.         return $this;
  138.     }
  139.     public function getFatherphone(): ?string
  140.     {
  141.         return $this->fatherphone;
  142.     }
  143.     public function setFatherphone(?string $fatherphone): self
  144.     {
  145.         $this->fatherphone $fatherphone;
  146.         return $this;
  147.     }
  148.     public function getFatheremail(): ?string
  149.     {
  150.         return $this->fatheremail;
  151.     }
  152.     public function setFatheremail(?string $fatheremail): self
  153.     {
  154.         $this->fatheremail $fatheremail;
  155.         return $this;
  156.     }
  157.     public function getMotheremail(): ?string
  158.     {
  159.         return $this->motheremail;
  160.     }
  161.     public function setMotheremail(?string $motheremail): self
  162.     {
  163.         $this->motheremail $motheremail;
  164.         return $this;
  165.     }
  166.     public function getFatherhebrewname(): ?string
  167.     {
  168.         return $this->fatherhebrewname;
  169.     }
  170.     public function setFatherhebrewname(?string $fatherhebrewname): self
  171.     {
  172.         $this->fatherhebrewname $fatherhebrewname;
  173.         return $this;
  174.     }
  175.     public function getMothername(): ?string
  176.     {
  177.         return $this->mothername;
  178.     }
  179.     public function setMothername(?string $mothername): self
  180.     {
  181.         $this->mothername $mothername;
  182.         return $this;
  183.     } 
  184.     public function getMotherphone(): ?string
  185.     {
  186.         return $this->motherphone;
  187.     }
  188.     public function setMotherphone(?string $motherphone): self
  189.     {
  190.         $this->motherphone $motherphone;
  191.         return $this;
  192.     }
  193.     public function getMotherhebrewname(): ?string
  194.     {
  195.         return $this->motherhebrewname;
  196.     }
  197.     public function setMotherhebrewname(?string $motherhebrewname): self
  198.     {
  199.         $this->motherhebrewname $motherhebrewname;
  200.         return $this;
  201.     }
  202.     public function getDoctorname(): ?string
  203.     {
  204.         return $this->doctorname;
  205.     }
  206.     public function setDoctorname(?string $doctorname): self
  207.     {
  208.         $this->doctorname $doctorname;
  209.         return $this;
  210.     }
  211.     public function getDoctoraddress(): ?string
  212.     {
  213.         return $this->doctoraddress;
  214.     }
  215.     public function setDoctoraddress(?string $doctoraddress): self
  216.     {
  217.         $this->doctoraddress $doctoraddress;
  218.         return $this;
  219.     }
  220.     public function getDoctorphone(): ?string
  221.     {
  222.         return $this->doctorphone;
  223.     }
  224.     public function setDoctorphone(?string $doctorphone): self
  225.     {
  226.         $this->doctorphone $doctorphone;
  227.         return $this;
  228.     }
  229.     public function getImage(): ?string
  230.     {
  231.         return $this->image;
  232.     }
  233.     public function setImage(?string $image): self
  234.     {
  235.         $this->image $image;
  236.         return $this;
  237.     }
  238.     public function getEmail(): ?string
  239.     {
  240.         return $this->email;
  241.     }
  242.     public function setEmail(string $email): self
  243.     {
  244.         $this->email $email;
  245.         return $this;
  246.     }
  247.     public function getLastname(): ?string
  248.     {
  249.         return $this->lastname;
  250.     }
  251.     public function setLastname(?string $lastname): self
  252.     {
  253.         $this->lastname $lastname;
  254.         return $this;
  255.     }
  256.     public function getFirstname(): ?string
  257.     {
  258.         return $this->firstname;
  259.     }
  260.     public function setFirstname(string $firstname): self
  261.     {
  262.         $this->firstname $firstname;
  263.         return $this;
  264.     }
  265.     public function getPhone(): ?string
  266.     {
  267.         return $this->phone;
  268.     }
  269.     public function setPhone(?string $phone): self
  270.     {
  271.         $this->phone $phone;
  272.         return $this;
  273.     }
  274.     public function getGender(): ?string
  275.     {
  276.         return $this->gender;
  277.     }
  278.     public function setGender(string $gender): self
  279.     {
  280.         $this->gender $gender;
  281.         return $this;
  282.     }
  283.     public function getSchool(): ?Schools
  284.     {
  285.         return $this->school;
  286.     }
  287.     public function setSchool(?Schools $school): self
  288.     {
  289.         $this->school $school;
  290.         return $this;
  291.     }
  292.     public function getCommentaire(): ?string
  293.     {
  294.         return $this->commentaire;
  295.     }
  296.     public function setCommentaire(?string $commentaire): self
  297.     {
  298.         $this->commentaire $commentaire;
  299.         return $this;
  300.     }
  301.     public function getReferrals(): ?int
  302.     {
  303.         return $this->referrals;
  304.     }
  305.     public function setReferrals(?int $referrals): self
  306.     {
  307.         $this->referrals $referrals;
  308.         return $this;
  309.     }
  310.     public function getSessionseta(): ?\DateTimeInterface
  311.     {
  312.         return $this->sessionseta;
  313.     }
  314.     public function setSessionseta(?\DateTimeInterface $sessionseta): self
  315.     {
  316.         $this->sessionseta $sessionseta;
  317.         return $this;
  318.     }
  319.     /**
  320.      * @return Collection<int, Sessions>
  321.      */
  322.     public function getSessions(): Collection
  323.     {
  324.         return $this->sessions;
  325.     }
  326.     public function addSession(Sessions $session): self
  327.     {
  328.         if (!$this->sessions->contains($session)) {
  329.             $this->sessions->add($session);
  330.             $session->setChild($this);
  331.         }
  332.         return $this;
  333.     }
  334.     public function removeSession(Sessions $session): self
  335.     {
  336.         if ($this->sessions->removeElement($session)) {
  337.             // set the owning side to null (unless already changed)
  338.             if ($session->getChild() === $this) {
  339.                 $session->setChild(null);
  340.             }
  341.         }
  342.         return $this;
  343.     }
  344.     /**
  345.      * @return Collection<int, User>
  346.      */
  347.     public function getUser(): Collection
  348.     {
  349.         return $this->user;
  350.     }
  351.     public function addUser(User $user): self
  352.     {
  353.         if (!$this->user->contains($user)) {
  354.             $this->user->add($user);
  355.         }
  356.         return $this;
  357.     }
  358.     public function removeUser(User $user): self
  359.     {
  360.         $this->user->removeElement($user);
  361.         return $this;
  362.     }
  363.     public function getDoctorcity(): ?string
  364.     {
  365.         return $this->doctorcity;
  366.     }
  367.     public function setDoctorcity(?string $doctorcity): self
  368.     {
  369.         $this->doctorcity $doctorcity;
  370.         return $this;
  371.     }
  372.     public function getDoctorzipcode(): ?string
  373.     {
  374.         return $this->doctorzipcode;
  375.     }
  376.     public function setDoctorzipcode(?string $doctorzipcode): self
  377.     {
  378.         $this->doctorzipcode $doctorzipcode;
  379.         return $this;
  380.     }
  381.     public function getPayment(): ?string
  382.     {
  383.         return $this->payment;
  384.     }
  385.     public function setPayment(?string $payment): self
  386.     {
  387.         $this->payment $payment;
  388.         return $this;
  389.     }
  390.     public function getSessionsemail(): ?int
  391.     {
  392.         return $this->sessionsemail;
  393.     }
  394.     public function setSessionsemail(?int $sessionsemail): self
  395.     {
  396.         $this->sessionsemail $sessionsemail;
  397.         return $this;
  398.     }
  399.     public function getFileone(): array
  400.     {
  401.         return $this->fileone;
  402.     }
  403.     public function setFileone(?array $fileone): self
  404.     {
  405.         $this->fileone $fileone;
  406.         return $this;
  407.     }
  408.     public function getFiletwo(): array
  409.     {
  410.         return $this->filetwo;
  411.     }
  412.     public function setFiletwo(?array $filetwo): self
  413.     {
  414.         $this->filetwo $filetwo;
  415.         return $this;
  416.     }
  417.     public function getFilethree(): array
  418.     {
  419.         return $this->filethree;
  420.     }
  421.     public function setFilethree(?array $filethree): self
  422.     {
  423.         $this->filethree $filethree;
  424.         return $this;
  425.     }
  426.     public function getCreationdate(): ?\DateTimeInterface
  427.     {
  428.         return $this->creationdate;
  429.     }
  430.     public function setCreationdate(?\DateTimeInterface $creationdate): self
  431.     {
  432.         $this->creationdate $creationdate;
  433.         return $this;
  434.     }
  435.     public function getFinishdate(): ?\DateTimeInterface
  436.     {
  437.         return $this->finishdate;
  438.     }
  439.     public function setFinishdate(?\DateTimeInterface $finishdate): self
  440.     {
  441.         $this->finishdate $finishdate;
  442.         return $this;
  443.     }
  444.     public function getPaymentmethod(): ?string
  445.     {
  446.         return $this->paymentmethod;
  447.     }
  448.     public function setPaymentmethod(?string $paymentmethod): self
  449.     {
  450.         $this->paymentmethod $paymentmethod;
  451.         return $this;
  452.     }
  453.     public function getChildaddress(): ?string
  454.     {
  455.         return $this->childaddress;
  456.     }
  457.     public function setChildaddress(?string $childaddress): self
  458.     {
  459.         $this->childaddress $childaddress;
  460.         return $this;
  461.     }
  462.     public function getChildzipcode(): ?string
  463.     {
  464.         return $this->childzipcode;
  465.     }
  466.     public function setChildzipcode(?string $childzipcode): self
  467.     {
  468.         $this->childzipcode $childzipcode;
  469.         return $this;
  470.     }
  471.     public function getChildcity(): ?string
  472.     {
  473.         return $this->childcity;
  474.     }
  475.     public function setChildcity(?string $childcity): self
  476.     {
  477.         $this->childcity $childcity;
  478.         return $this;
  479.     }
  480. }