src/Entity/SatisfactionSearch.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SatisfactionSearchRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use JMS\Serializer\Annotation\ExclusionPolicy;
  8. #[ORM\Table(name'satisfaction_search')]
  9. #[ORM\Entity(repositoryClassSatisfactionSearchRepository::class)]
  10. class SatisfactionSearch {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type'integer')]
  14.     private ?int $id null;
  15.     #[ORM\Column(name"registered_training"type"boolean")]
  16.     private bool $registeredTraining;
  17.     #[ORM\Column(name"formation_pursuit_last_degree"type"boolean")]
  18.     private bool $formationPursuitLastDegree false;
  19.     #[ORM\Column(name"other_formation_degree_name"type"string"length255nullabletrue)]
  20.     private ?string $otherFormationDegreeName;
  21.     #[ORM\Column(name"other_formation_activity_name"type"string"length255nullabletrue)]
  22.     private ?string $otherFormationActivityName;
  23.     #[ORM\Column(name"search_work"type"boolean")]
  24.     private bool $searchWork false;
  25.     #[ORM\Column(name"no_search_work_reason"type"string"length255nullabletrue)]
  26.     private ?string $noSearchWorkReason;
  27.     #[ORM\Column(name"active_volunteer"type"boolean")]
  28.     private bool $activeVolunteer false;
  29.     #[ORM\Column(name"other_domain_volunteer"type"string"length255nullabletrue)]
  30.     private ?string $otherDomainVolunteer;
  31.     #[ORM\Column(name"job_volunteer"type"string"length255nullabletrue)]
  32.     private ?string $jobVolunteer;
  33.     #[ORM\Column(name"job_refuse"type"boolean")]
  34.     private bool $jobRefuse false;
  35.     #[ORM\Column(name"job_from_formation"type"boolean")]
  36.     private bool $jobFromFormation false;
  37.     #[ORM\Column(name"job_time"type"string"length255nullabletrue)]
  38.     private ?string $jobTime;
  39.     #[ORM\ManyToOne(targetEntitySectorArea::class)]
  40.     private ?SectorArea $sectorAreaVolunteer null;
  41.     #[ORM\ManyToOne(targetEntityActivity::class)]
  42.     private ?Activity $activityVolunteer null;
  43.     #[ORM\ManyToOne(targetEntityPersonDegree::class)]
  44.     #[ORM\JoinColumn(nullablefalse)]
  45.     private ?PersonDegree $personDegree null;
  46.     #[ORM\ManyToOne(targetEntityDegree::class)]
  47.     #[ORM\JoinColumn(nullabletrue)]
  48.     private ?Degree $degree null;
  49.     #[ORM\ManyToOne(targetEntitySectorArea::class)]
  50.     #[ORM\JoinColumn(name'id_sectorArea'referencedColumnName'id')]
  51.     private ?SectorArea $sectorArea null;
  52.     #[ORM\ManyToMany(targetEntityActivity::class)]
  53.     #[ORM\JoinTable(name'satisfaction_search_activities')]
  54.     #[ORM\JoinColumn(name'satisfaction_search_id'referencedColumnName'id')]
  55.     #[ORM\InverseJoinColumn(name'activity_id'referencedColumnName'id')]
  56.     private Collection $activities;
  57.     #[ORM\ManyToMany(targetEntityJobNotFoundReason::class)]
  58.     #[ORM\JoinTable(name'satisfaction_search_reasons')]
  59.     #[ORM\JoinColumn(name'satisfaction_search_id'referencedColumnName'id')]
  60.     #[ORM\InverseJoinColumn(name'job_not_found_reason_id'referencedColumnName'id')]
  61.     private Collection $jobNotFoundReasons;
  62.     #[ORM\Column(name'job_not_found_other'type'string'length255nullabletrue)]
  63.     private ?string $jobNotFoundOther;
  64.     #[ORM\Column(name'degree_date'type'string'length255nullabletrue)]
  65.     private ?string $degreeDate null;
  66.     #[ORM\Column(name'created_date'type'datetime')]
  67.     private ?\DateTime $createdDate null;
  68.     #[ORM\Column(name'updated_date'type'datetime'nullabletrue)]
  69.     private ?\DateTime $updatedDate;
  70.     public function __construct() {
  71.         $this->jobNotFoundReasons = new ArrayCollection();
  72.         $this->activities = new ArrayCollection();
  73.     }
  74.     public function getPersonDegree(): ?PersonDegree {
  75.         return $this->personDegree;
  76.     }
  77.     public function setPersonDegree(?PersonDegree $personDegree): self {
  78.         $this->personDegree $personDegree;
  79.         return $this;
  80.     }
  81.     public function getRegisteredTraining(): bool {
  82.         return $this->registeredTraining;
  83.     }
  84.     public function setRegisteredTraining(bool $registeredTraining): self {
  85.         $this->registeredTraining $registeredTraining;
  86.         return $this;
  87.     }
  88.     public function isFormationPursuitLastDegree(): bool {
  89.         return $this->formationPursuitLastDegree;
  90.     }
  91.     public function getFormationPursuitLastDegree(): bool {
  92.         return $this->formationPursuitLastDegree;
  93.     }
  94.     public function setFormationPursuitLastDegree(bool $formationPursuitLastDegree): self {
  95.         $this->formationPursuitLastDegree $formationPursuitLastDegree;
  96.         return $this;
  97.     }
  98.     public function getDegree(): ?Degree {
  99.         return $this->degree;
  100.     }
  101.     public function setDegree(?Degree $degree): self {
  102.         $this->degree $degree;
  103.         return $this;
  104.     }
  105.     public function getOtherFormationDegreeName(): ?string {
  106.         return $this->otherFormationDegreeName;
  107.     }
  108.     public function setOtherFormationDegreeName(?string $otherFormationDegreeName): self {
  109.         $this->otherFormationDegreeName $otherFormationDegreeName;
  110.         return $this;
  111.     }
  112.     public function getOtherFormationActivityName(): ?string {
  113.         return $this->otherFormationActivityName;
  114.     }
  115.     public function setOtherFormationActivityName(?string $otherFormationActivityName): self {
  116.         $this->otherFormationActivityName $otherFormationActivityName;
  117.         return $this;
  118.     }
  119.     public function getSearchWork(): bool {
  120.         return $this->searchWork;
  121.     }
  122.     public function setSearchWork(bool $searchWork): self {
  123.         $this->searchWork $searchWork;
  124.         return $this;
  125.     }
  126.     public function getNoSearchWorkReason(): ?string {
  127.         return $this->noSearchWorkReason;
  128.     }
  129.     public function setNoSearchWorkReason(?string $noSearchWorkReason): self {
  130.         $this->noSearchWorkReason $noSearchWorkReason;
  131.         return $this;
  132.     }
  133.     public function getActiveVolunteer(): bool|string {
  134.         return $this->activeVolunteer;
  135.     }
  136.     public function setActiveVolunteer(string $activeVolunteer): self {
  137.         $this->activeVolunteer $activeVolunteer;
  138.         return $this;
  139.     }
  140.     public function getSectorArea(): ?SectorArea {
  141.         return $this->sectorArea;
  142.     }
  143.     public function setSectorArea(?SectorArea $sectorArea): self {
  144.         $this->sectorArea $sectorArea;
  145.         return $this;
  146.     }
  147.     public function getOtherDomainVolunteer(): ?string {
  148.         return $this->otherDomainVolunteer;
  149.     }
  150.     public function setOtherDomainVolunteer(?string $otherDomainVolunteer): self {
  151.         $this->otherDomainVolunteer $otherDomainVolunteer;
  152.         return $this;
  153.     }
  154.     public function getJobVolunteer(): ?string {
  155.         return $this->jobVolunteer;
  156.     }
  157.     public function setJobVolunteer(?string $jobVolunteer): self {
  158.         $this->jobVolunteer $jobVolunteer;
  159.         return $this;
  160.     }
  161.     public function isJobRefuse(): bool {
  162.         return $this->jobRefuse;
  163.     }
  164.     public function getJobRefuse(): bool {
  165.         return $this->jobRefuse;
  166.     }
  167.     public function setJobRefuse(bool $jobRefuse): self {
  168.         $this->jobRefuse $jobRefuse;
  169.         return $this;
  170.     }
  171.     public function isJobFromFormation(): bool {
  172.         return $this->jobFromFormation;
  173.     }
  174.     public function getJobFromFormation(): bool {
  175.         return $this->jobFromFormation;
  176.     }
  177.     public function setJobFromFormation(bool $jobFromFormation): self {
  178.         $this->jobFromFormation $jobFromFormation;
  179.         return $this;
  180.     }
  181.     public function getJobTime(): ?string {
  182.         return $this->jobTime;
  183.     }
  184.     public function setJobTime(?string $jobTime): self {
  185.         $this->jobTime $jobTime;
  186.         return $this;
  187.     }
  188.     public function getJobNotFoundOther(): ?string {
  189.         return $this->jobNotFoundOther;
  190.     }
  191.     public function setJobNotFoundOther(?string $jobNotFoundOther): self {
  192.         $this->jobNotFoundOther $jobNotFoundOther;
  193.         return $this;
  194.     }
  195.     public function addJobNotFoundReason(JobNotFoundReason $jobNotFoundReason): self {
  196.         $this->jobNotFoundReasons->add($jobNotFoundReason);
  197.         return $this;
  198.     }
  199.     public function removeJobNotFoundReason(JobNotFoundReason $jobNotFoundReason): void {
  200.         $this->jobNotFoundReasons->removeElement($jobNotFoundReason);
  201.     }
  202.     public function getJobNotFoundReasons(): Collection {
  203.         return $this->jobNotFoundReasons;
  204.     }
  205.     public function getDegreeDate(): ?string {
  206.         return $this->degreeDate;
  207.     }
  208.     public function setDegreeDate(?string $degreeDate): self {
  209.         $this->degreeDate $degreeDate;
  210.         return $this;
  211.     }
  212.     public function getCreatedDate(): ?\DateTime {
  213.         return $this->createdDate;
  214.     }
  215.     public function setCreatedDate(?\DateTime $createdDate): void {
  216.         $this->createdDate $createdDate;
  217.     }
  218.     public function getUpdatedDate(): ?\DateTime {
  219.         return $this->updatedDate;
  220.     }
  221.     public function setUpdatedDate(?\DateTime $updatedDate): self {
  222.         $this->updatedDate $updatedDate;
  223.         return $this;
  224.     }
  225.     public function addActivity(Activity $activity): self {
  226.         $this->activities->add($activity);
  227.         return $this;
  228.     }
  229.     public function removeActivity(Activity $activity): void {
  230.         $this->activities->removeElement($activity);
  231.     }
  232.     public function getActivities(): Collection {
  233.         return $this->activities;
  234.     }
  235.     public function __toString() {
  236.         return sprintf('%s  %s - id=%d ',
  237.             ucfirst($this->personDegree->getFirstname()),
  238.             ucfirst($this->personDegree->getLastname()),
  239.             ucfirst($this->getId())
  240.         );
  241.     }
  242.     public function getId(): ?int {
  243.         return $this->id;
  244.     }
  245.     public function setSectorAreaVolunteer(?SectorArea $sectorAreaVolunteer null): self {
  246.         $this->sectorAreaVolunteer $sectorAreaVolunteer;
  247.         return $this;
  248.     }
  249.     public function getSectorAreaVolunteer(): ?SectorArea {
  250.         return $this->sectorAreaVolunteer;
  251.     }
  252.     public function setActivityVolunteer(?Activity $activityVolunteer null): self {
  253.         $this->activityVolunteer $activityVolunteer;
  254.         return $this;
  255.     }
  256.     public function getActivityVolunteer(): ?Activity {
  257.         return $this->activityVolunteer;
  258.     }
  259. }