src/Entity/SatisfactionCompany.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SatisfactionCompanyRepository;
  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_company")]
  9. #[ORM\Entity(repositoryClassSatisfactionCompanyRepository::class)]
  10. class SatisfactionCompany {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type'integer')]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(targetEntityCompany::class)]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?Company $company null;
  18.     #[ORM\ManyToOne(targetEntitySectorArea::class)]
  19.     #[ORM\JoinColumn(nullabletrue)]
  20.     private ?SectorArea $workerSectorArea null;
  21.     #[ORM\ManyToOne(targetEntitySectorArea::class)]
  22.     #[ORM\JoinColumn(nullabletrue)]
  23.     private ?SectorArea $technicianSectorArea null;
  24.     #[ORM\ManyToMany(targetEntityActivity::class)]
  25.     #[ORM\JoinTable(name'satisfaction_company_activities')]
  26.     #[ORM\JoinColumn(name'satisfaction_company_id'referencedColumnName'id')]
  27.     #[ORM\InverseJoinColumn(name'activity_id'referencedColumnName'id')]
  28.     private Collection $workerActivities;
  29.     #[ORM\ManyToMany(targetEntityActivity::class)]
  30.     #[ORM\JoinTable(name'satisfaction_company_technicians_activities')]
  31.     #[ORM\JoinColumn(name'satisfaction_company_id'referencedColumnName'id')]
  32.     #[ORM\InverseJoinColumn(name'activity_id'referencedColumnName'id')]
  33.     private Collection $technicianActivities;
  34.     #[ORM\ManyToMany(targetEntityOmissionReason::class)]
  35.     #[ORM\JoinTable(name'satisfaction_company_reason')]
  36.     #[ORM\JoinColumn(name'satisfaction_company_id'referencedColumnName'id')]
  37.     #[ORM\InverseJoinColumn(name'omission_reason_id'referencedColumnName'id')]
  38.     private Collection $omissionPeoples;
  39.     #[ORM\Column(name'salary_number'type'string'length255)]
  40.     private string $salaryNumber;
  41.     #[ORM\Column(name'apprentice_number'type'string'length255)]
  42.     private string $apprenticeNumber;
  43.     #[ORM\Column(name'student_number'type'string'length255)]
  44.     private string $studentNumber;
  45.     #[ORM\Column(name'other_worker_job'type'string'length255nullabletrue)]
  46.     private ?string $otherWorkerJob;
  47.     #[ORM\Column(name'other_technician_job'type'string'length255nullabletrue)]
  48.     private ?string $otherTechnicianJob;
  49.     #[ORM\Column(name'level_skill'type'string'length255)]
  50.     private string $levelSkill;
  51.     #[ORM\Column(name'level_global_skill'type'integer')]
  52.     private int $levelGlobalSkill;
  53.     #[ORM\Column(name'level_technical_skill'type'integer')]
  54.     private int $levelTechnicalSkill;
  55.     #[ORM\Column(name'level_communication_hygiene_health_env_skill'type'integer')]
  56.     private int $levelCommunicationHygieneHealthEnvSkill;
  57.     #[ORM\Column(name'level_other_skill'type'integer'nullabletrue)]
  58.     private ?int $levelOtherSkill;
  59.     #[ORM\Column(name'level_other_name'type'string'length255nullabletrue)]
  60.     private ?string $levelOtherName;
  61.     #[ORM\Column(name'other_omission_people'type'string'length255nullabletrue)]
  62.     private ?string $otherOmissionPeople;
  63.     #[ORM\Column(name'hiring_same_profile'type'boolean')]
  64.     private bool $hiringSameProfile;
  65.     #[ORM\Column(name'complete_training'type'boolean')]
  66.     private bool $completeTraining;
  67.     #[ORM\Column(name'complete_global_training'type'boolean')]
  68.     private bool $completeGlobalTraining;
  69.     #[ORM\Column(name'complete_technical_training'type'boolean')]
  70.     private bool $completeTechnicalTraining;
  71.     #[ORM\Column(name'complete_communication_hygiene_health_env_training'type'boolean')]
  72.     private bool $completeCommunicationHygieneHealthEnvTraining;
  73.     #[ORM\Column(name'complete_Other_training'type'boolean')]
  74.     private bool $completeOtherTraining;
  75.     #[ORM\Column(name'hiring_6_months_worker'type'string'length255)]
  76.     private string $hiring6MonthsWorker;
  77.     #[ORM\Column(name'hiring_6_months_technician'type'string'length255)]
  78.     private string $hiring6MonthsTechnician;
  79.     #[ORM\Column(name'hiring_6_months_apprentice'type'string'length255)]
  80.     private string $hiring6MonthsApprentice;
  81.     #[ORM\Column(name'hiring_6_months_student'type'string'length255)]
  82.     private string $hiring6MonthsStudent;
  83.     #[ORM\Column(name'created_date'type'datetime'nullabletrue)]
  84.     private ?\DateTime $createdDate null;
  85.     #[ORM\Column(name'updated_date'type'datetime'nullabletrue)]
  86.     private ?\DateTime $updatedDate null;
  87.     public function __construct() {
  88.         $this->createdDate = new \DateTime();
  89.         $this->updatedDate = new \DateTime();
  90.         $this->omissionPeoples = new ArrayCollection();
  91.         $this->workerActivities = new ArrayCollection();
  92.         $this->technicianActivities = new ArrayCollection();
  93.     }
  94.     public function getId(): ?int {
  95.         return $this->id;
  96.     }
  97.     public function setCompany(?Company $company): self {
  98.         $this->company $company;
  99.         return $this;
  100.     }
  101.     public function getCompany(): ?Company {
  102.         return $this->company;
  103.     }
  104.     public function setSalaryNumber(string $salaryNumber) {
  105.         $this->salaryNumber $salaryNumber;
  106.         return $this;
  107.     }
  108.     public function getSalaryNumber(): string {
  109.         return $this->salaryNumber;
  110.     }
  111.     public function setApprenticeNumber(string $apprenticeNumber) {
  112.         $this->apprenticeNumber $apprenticeNumber;
  113.         return $this;
  114.     }
  115.     public function getApprenticeNumber(): string {
  116.         return $this->apprenticeNumber;
  117.     }
  118.     public function getStudentNumber(): string {
  119.         return $this->studentNumber;
  120.     }
  121.     public function setStudentNumber(string $studentNumber): self {
  122.         $this->studentNumber $studentNumber;
  123.         return $this;
  124.     }
  125.     public function getOtherWorkerJob(): ?string {
  126.         return $this->otherWorkerJob;
  127.     }
  128.     public function setOtherWorkerJob(?string $otherWorkerJob): self {
  129.         $this->otherWorkerJob $otherWorkerJob;
  130.         return $this;
  131.     }
  132.     public function getOtherTechnicianJob(): ?string {
  133.         return $this->otherTechnicianJob;
  134.     }
  135.     public function setOtherTechnicianJob(?string $otherTechnicianJob): self {
  136.         $this->otherTechnicianJob $otherTechnicianJob;
  137.         return $this;
  138.     }
  139.     public function getLevelSkill(): string {
  140.         return $this->levelSkill;
  141.     }
  142.     public function setLevelSkill(string $levelSkill): self {
  143.         $this->levelSkill $levelSkill;
  144.         return $this;
  145.     }
  146.     public function getLevelGlobalSkill(): int {
  147.         return $this->levelGlobalSkill;
  148.     }
  149.     public function setLevelGlobalSkill(int $levelGlobalSkill): self {
  150.         $this->levelGlobalSkill $levelGlobalSkill;
  151.         return $this;
  152.     }
  153.     public function getLevelTechnicalSkill(): int {
  154.         return $this->levelTechnicalSkill;
  155.     }
  156.     public function setLevelTechnicalSkill(int $levelTechnicalSkill): self {
  157.         $this->levelTechnicalSkill $levelTechnicalSkill;
  158.         return $this;
  159.     }
  160.     public function getLevelCommunicationHygieneHealthEnvSkill(): int {
  161.         return $this->levelCommunicationHygieneHealthEnvSkill;
  162.     }
  163.     public function setLevelCommunicationHygieneHealthEnvSkill(int $levelCommunicationHygieneHealthEnvSkill): self {
  164.         $this->levelCommunicationHygieneHealthEnvSkill $levelCommunicationHygieneHealthEnvSkill;
  165.         return $this;
  166.     }
  167.     public function getLevelOtherSkill(): ?int {
  168.         return $this->levelOtherSkill;
  169.     }
  170.     public function setLevelOtherSkill(?int $levelOtherSkill): self {
  171.         $this->levelOtherSkill $levelOtherSkill;
  172.         return $this;
  173.     }
  174.     public function getLevelOtherName(): ?string {
  175.         return $this->levelOtherName;
  176.     }
  177.     public function setLevelOtherName(?string $levelOtherName): self {
  178.         $this->levelOtherName $levelOtherName;
  179.         return $this;
  180.     }
  181.     public function setOtherOmissionPeople(?string $otherOmissionPeople): self {
  182.         $this->otherOmissionPeople $otherOmissionPeople;
  183.         return $this;
  184.     }
  185.     public function getOtherOmissionPeople(): ?string {
  186.         return $this->otherOmissionPeople;
  187.     }
  188.     public function getCreatedDate(): ?\DateTime {
  189.         return $this->createdDate;
  190.     }
  191.     public function setCreatedDate(?\DateTime $createdDate): void {
  192.         $this->createdDate $createdDate;
  193.     }
  194.     public function getUpdatedDate(): ?\DateTime {
  195.         return $this->updatedDate;
  196.     }
  197.     public function setUpdatedDate(?\DateTime $updatedDate): self {
  198.         $this->updatedDate $updatedDate;
  199.         return $this;
  200.     }
  201.     public function isHiringSameProfile(): bool {
  202.         return $this->hiringSameProfile;
  203.     }
  204.     public function setHiringSameProfile(bool $hiringSameProfile): self {
  205.         $this->hiringSameProfile $hiringSameProfile;
  206.         return $this;
  207.     }
  208.     public function isCompleteTraining(): bool {
  209.         return $this->completeTraining;
  210.     }
  211.     public function setCompleteTraining(bool $completeTraining): self {
  212.         $this->completeTraining $completeTraining;
  213.         return $this;
  214.     }
  215.     public function isCompleteGlobalTraining(): bool {
  216.         return $this->completeGlobalTraining;
  217.     }
  218.     public function setCompleteGlobalTraining(bool $completeGlobalTraining): self {
  219.         $this->completeGlobalTraining $completeGlobalTraining;
  220.         return $this;
  221.     }
  222.     public function isCompleteTechnicalTraining(): bool {
  223.         return $this->completeTechnicalTraining;
  224.     }
  225.     public function setCompleteTechnicalTraining(bool $completeTechnicalTraining): self {
  226.         $this->completeTechnicalTraining $completeTechnicalTraining;
  227.         return $this;
  228.     }
  229.     public function isCompleteCommunicationHygieneHealthEnvTraining(): bool {
  230.         return $this->completeCommunicationHygieneHealthEnvTraining;
  231.     }
  232.     public function setCompleteCommunicationHygieneHealthEnvTraining(bool $completeCommunicationHygieneHealthEnvTraining): self {
  233.         $this->completeCommunicationHygieneHealthEnvTraining $completeCommunicationHygieneHealthEnvTraining;
  234.         return $this;
  235.     }
  236.     public function isCompleteOtherTraining(): bool {
  237.         return $this->completeOtherTraining;
  238.     }
  239.     public function setCompleteOtherTraining(bool $completeOtherTraining): self {
  240.         $this->completeOtherTraining $completeOtherTraining;
  241.         return $this;
  242.     }
  243.     public function getHiring6MonthsWorker(): string {
  244.         return $this->hiring6MonthsWorker;
  245.     }
  246.     public function setHiring6MonthsWorker(string $hiring6MonthsWorker): self {
  247.         $this->hiring6MonthsWorker $hiring6MonthsWorker;
  248.         return $this;
  249.     }
  250.     public function getHiring6MonthsTechnician(): string {
  251.         return $this->hiring6MonthsTechnician;
  252.     }
  253.     public function setHiring6MonthsTechnician(string $hiring6MonthsTechnician): self {
  254.         $this->hiring6MonthsTechnician $hiring6MonthsTechnician;
  255.         return $this;
  256.     }
  257.     public function getHiring6MonthsApprentice(): string {
  258.         return $this->hiring6MonthsApprentice;
  259.     }
  260.     public function setHiring6MonthsApprentice(string $hiring6MonthsApprentice): self {
  261.         $this->hiring6MonthsApprentice $hiring6MonthsApprentice;
  262.         return $this;
  263.     }
  264.     public function getHiring6MonthsStudent(): string {
  265.         return $this->hiring6MonthsStudent;
  266.     }
  267.     public function setHiring6MonthsStudent(string $hiring6MonthsStudent): self {
  268.         $this->hiring6MonthsStudent $hiring6MonthsStudent;
  269.         return $this;
  270.     }
  271.     public function addOmissionPeople(OmissionReason $omissionPeople): self {
  272.         $this->omissionPeoples->add($omissionPeople);
  273.         return $this;
  274.     }
  275.     public function removeOmissionPeople(OmissionReason $omissionPeople): void {
  276.         $this->omissionPeoples->removeElement($omissionPeople);
  277.     }
  278.     public function getOmissionPeoples(): Collection {
  279.         return $this->omissionPeoples;
  280.     }
  281.     public function setWorkerSectorArea(?SectorArea $workerSectorArea null): self {
  282.         $this->workerSectorArea $workerSectorArea;
  283.         return $this;
  284.     }
  285.     public function getWorkerSectorArea(): ?SectorArea {
  286.         return $this->workerSectorArea;
  287.     }
  288.     public function setTechnicianSectorArea(?SectorArea $technicianSectorArea null): self {
  289.         $this->technicianSectorArea $technicianSectorArea;
  290.         return $this;
  291.     }
  292.     public function getTechnicianSectorArea(): ?SectorArea {
  293.         return $this->technicianSectorArea;
  294.     }
  295.     public function addWorkerActivity(Activity $workerActivity): self {
  296.         $this->workerActivities[] = $workerActivity;
  297.         return $this;
  298.     }
  299.     public function removeWorkerActivity(Activity $workerActivity): void {
  300.         $this->workerActivities->removeElement($workerActivity);
  301.     }
  302.     public function getWorkerActivities(): Collection {
  303.         return $this->workerActivities;
  304.     }
  305.     public function addTechnicianActivity(Activity $technicianActivity): self {
  306.         $this->technicianActivities->add($technicianActivity);
  307.         return $this;
  308.     }
  309.     public function removeTechnicianActivity(Activity $technicianActivity): void {
  310.         $this->technicianActivities->removeElement($technicianActivity);
  311.     }
  312.     public function getTechnicianActivities(): Collection {
  313.         return $this->technicianActivities;
  314.     }
  315.     public function __toString() {
  316.         return sprintf('%s - id=%d ',
  317.             ucfirst($this->getCompany()),
  318.             ucfirst($this->getCompany()->getId())
  319.         );
  320.     }
  321. }