<?php
namespace App\Entity;
use App\Repository\ChildsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ChildsRepository::class)]
class Childs
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 20, nullable: true)]
private ?string $status = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dob = null;
#[ORM\Column(length: 50)]
private ?string $fathername = null;
#[ORM\Column(length: 15, nullable: true)]
private ?string $fatherphone = null;
#[ORM\Column(length: 15, nullable: true)]
private ?string $cityborn = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $fatheremail = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $motheremail = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $fatherhebrewname = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $mothername = null;
#[ORM\Column(length: 15, nullable: true)]
private ?string $motherphone = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $motherhebrewname = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $doctorname = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $doctoraddress = null;
#[ORM\Column(length: 15, nullable: true)]
private ?string $doctorphone = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $image = null;
#[ORM\Column(length: 100)]
private ?string $email = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $lastname = null;
#[ORM\Column(length: 50)]
private ?string $firstname = null;
#[ORM\Column(length: 15, nullable: true)]
private ?string $phone = null;
#[ORM\Column(length: 10)]
private ?string $gender = null;
#[ORM\ManyToOne(inversedBy: 'child')]
#[ORM\JoinColumn(nullable: false)]
private ?Schools $school = null;
#[ORM\Column(nullable: true)]
private ?int $referrals = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $sessionseta = null;
#[ORM\OneToMany(mappedBy: 'child', targetEntity: Sessions::class)]
private Collection $sessions;
#[ORM\ManyToMany(targetEntity: User::class, inversedBy: 'childs')]
private Collection $user;
#[ORM\Column(length: 450, nullable: true)]
private ?string $commentaire = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $doctorcity = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $doctorzipcode = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $payment = null;
#[ORM\Column(type: Types::SMALLINT, nullable: true)]
private ?int $sessionsemail = null;
#[ORM\Column(type: Types::ARRAY, nullable: true)]
private array $fileone = [];
#[ORM\Column(type: Types::ARRAY, nullable: true)]
private array $filetwo = [];
#[ORM\Column(type: Types::ARRAY, nullable: true)]
private array $filethree = [];
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $creationdate = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $finishdate = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $paymentmethod = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $childaddress = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $childzipcode = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $childcity = null;
public function __construct()
{
$this->sessions = new ArrayCollection();
$this->user = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getCityBorn(): ?string
{
return $this->cityborn;
}
public function setCityBorn(?string $cityborn): self
{
$this->cityborn = $cityborn;
return $this;
}
public function getDob(): ?\DateTimeInterface
{
return $this->dob;
}
public function setDob(?\DateTimeInterface $dob): self
{
$this->dob = $dob;
return $this;
}
public function getFathername(): ?string
{
return $this->fathername;
}
public function setFathername(string $fathername): self
{
$this->fathername = $fathername;
return $this;
}
public function getFatherphone(): ?string
{
return $this->fatherphone;
}
public function setFatherphone(?string $fatherphone): self
{
$this->fatherphone = $fatherphone;
return $this;
}
public function getFatheremail(): ?string
{
return $this->fatheremail;
}
public function setFatheremail(?string $fatheremail): self
{
$this->fatheremail = $fatheremail;
return $this;
}
public function getMotheremail(): ?string
{
return $this->motheremail;
}
public function setMotheremail(?string $motheremail): self
{
$this->motheremail = $motheremail;
return $this;
}
public function getFatherhebrewname(): ?string
{
return $this->fatherhebrewname;
}
public function setFatherhebrewname(?string $fatherhebrewname): self
{
$this->fatherhebrewname = $fatherhebrewname;
return $this;
}
public function getMothername(): ?string
{
return $this->mothername;
}
public function setMothername(?string $mothername): self
{
$this->mothername = $mothername;
return $this;
}
public function getMotherphone(): ?string
{
return $this->motherphone;
}
public function setMotherphone(?string $motherphone): self
{
$this->motherphone = $motherphone;
return $this;
}
public function getMotherhebrewname(): ?string
{
return $this->motherhebrewname;
}
public function setMotherhebrewname(?string $motherhebrewname): self
{
$this->motherhebrewname = $motherhebrewname;
return $this;
}
public function getDoctorname(): ?string
{
return $this->doctorname;
}
public function setDoctorname(?string $doctorname): self
{
$this->doctorname = $doctorname;
return $this;
}
public function getDoctoraddress(): ?string
{
return $this->doctoraddress;
}
public function setDoctoraddress(?string $doctoraddress): self
{
$this->doctoraddress = $doctoraddress;
return $this;
}
public function getDoctorphone(): ?string
{
return $this->doctorphone;
}
public function setDoctorphone(?string $doctorphone): self
{
$this->doctorphone = $doctorphone;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(?string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
public function getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getGender(): ?string
{
return $this->gender;
}
public function setGender(string $gender): self
{
$this->gender = $gender;
return $this;
}
public function getSchool(): ?Schools
{
return $this->school;
}
public function setSchool(?Schools $school): self
{
$this->school = $school;
return $this;
}
public function getCommentaire(): ?string
{
return $this->commentaire;
}
public function setCommentaire(?string $commentaire): self
{
$this->commentaire = $commentaire;
return $this;
}
public function getReferrals(): ?int
{
return $this->referrals;
}
public function setReferrals(?int $referrals): self
{
$this->referrals = $referrals;
return $this;
}
public function getSessionseta(): ?\DateTimeInterface
{
return $this->sessionseta;
}
public function setSessionseta(?\DateTimeInterface $sessionseta): self
{
$this->sessionseta = $sessionseta;
return $this;
}
/**
* @return Collection<int, Sessions>
*/
public function getSessions(): Collection
{
return $this->sessions;
}
public function addSession(Sessions $session): self
{
if (!$this->sessions->contains($session)) {
$this->sessions->add($session);
$session->setChild($this);
}
return $this;
}
public function removeSession(Sessions $session): self
{
if ($this->sessions->removeElement($session)) {
// set the owning side to null (unless already changed)
if ($session->getChild() === $this) {
$session->setChild(null);
}
}
return $this;
}
/**
* @return Collection<int, User>
*/
public function getUser(): Collection
{
return $this->user;
}
public function addUser(User $user): self
{
if (!$this->user->contains($user)) {
$this->user->add($user);
}
return $this;
}
public function removeUser(User $user): self
{
$this->user->removeElement($user);
return $this;
}
public function getDoctorcity(): ?string
{
return $this->doctorcity;
}
public function setDoctorcity(?string $doctorcity): self
{
$this->doctorcity = $doctorcity;
return $this;
}
public function getDoctorzipcode(): ?string
{
return $this->doctorzipcode;
}
public function setDoctorzipcode(?string $doctorzipcode): self
{
$this->doctorzipcode = $doctorzipcode;
return $this;
}
public function getPayment(): ?string
{
return $this->payment;
}
public function setPayment(?string $payment): self
{
$this->payment = $payment;
return $this;
}
public function getSessionsemail(): ?int
{
return $this->sessionsemail;
}
public function setSessionsemail(?int $sessionsemail): self
{
$this->sessionsemail = $sessionsemail;
return $this;
}
public function getFileone(): array
{
return $this->fileone;
}
public function setFileone(?array $fileone): self
{
$this->fileone = $fileone;
return $this;
}
public function getFiletwo(): array
{
return $this->filetwo;
}
public function setFiletwo(?array $filetwo): self
{
$this->filetwo = $filetwo;
return $this;
}
public function getFilethree(): array
{
return $this->filethree;
}
public function setFilethree(?array $filethree): self
{
$this->filethree = $filethree;
return $this;
}
public function getCreationdate(): ?\DateTimeInterface
{
return $this->creationdate;
}
public function setCreationdate(?\DateTimeInterface $creationdate): self
{
$this->creationdate = $creationdate;
return $this;
}
public function getFinishdate(): ?\DateTimeInterface
{
return $this->finishdate;
}
public function setFinishdate(?\DateTimeInterface $finishdate): self
{
$this->finishdate = $finishdate;
return $this;
}
public function getPaymentmethod(): ?string
{
return $this->paymentmethod;
}
public function setPaymentmethod(?string $paymentmethod): self
{
$this->paymentmethod = $paymentmethod;
return $this;
}
public function getChildaddress(): ?string
{
return $this->childaddress;
}
public function setChildaddress(?string $childaddress): self
{
$this->childaddress = $childaddress;
return $this;
}
public function getChildzipcode(): ?string
{
return $this->childzipcode;
}
public function setChildzipcode(?string $childzipcode): self
{
$this->childzipcode = $childzipcode;
return $this;
}
public function getChildcity(): ?string
{
return $this->childcity;
}
public function setChildcity(?string $childcity): self
{
$this->childcity = $childcity;
return $this;
}
}