src/Entity/Commitment.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommitmentRepository;
  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(repositoryClassCommitmentRepository::class)]
  9. class Commitment
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'commitments')]
  16.     private ?User $user null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $tutor_firstname null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $tutor_lastname null;
  21.     #[ORM\Column(length510nullabletrue)]
  22.     private ?string $adress null;
  23.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $start_date null;
  25.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  26.     private ?string $description null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?bool $company_agreement null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $contract_type null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?bool $tax_learning null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?bool $recent_recruitment null;
  35.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  36.     private ?\DateTimeInterface $received_on null;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $received_by null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?int $state null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $author null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $company_name null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $company_siret null;
  47.     #[ORM\Column(length255nullabletrue)]
  48.     private ?string $company_idcc null;
  49.     #[ORM\Column(length255nullabletrue)]
  50.     private ?string $company_ape null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $company_manager_firstname null;
  53.     #[ORM\Column(length255nullabletrue)]
  54.     private ?string $company_manager_lastname null;
  55.     #[ORM\Column(length255nullabletrue)]
  56.     private ?string $company_email null;
  57.     #[ORM\Column(length255nullabletrue)]
  58.     private ?string $company_phone null;
  59.     #[ORM\Column(length255nullabletrue)]
  60.     private ?string $tutor_email null;
  61.     #[ORM\Column(length255nullabletrue)]
  62.     private ?string $company_address null;
  63.     #[ORM\Column(nullabletrue)]
  64.     private ?bool $rf null;
  65.     #[ORM\ManyToOne(inversedBy'commitments')]
  66.     private ?Member $validated_by null;
  67.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  68.     private ?\DateTimeInterface $validation_date null;
  69.     #[ORM\Column(nullabletrue)]
  70.     private ?bool $draft null;
  71.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  72.     private ?\DateTimeInterface $relaunch_date null;
  73.     #[ORM\Column(length255nullabletrue)]
  74.     private ?string $zipcode null;
  75.     #[ORM\Column(length255nullabletrue)]
  76.     private ?string $city null;
  77.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  78.     private ?\DateTimeInterface $appointment_created_on null;
  79.     #[ORM\Column(length255nullabletrue)]
  80.     private ?string $job_title null;
  81.     #[ORM\Column(length510nullabletrue)]
  82.     private ?string $provident_fund_name null;
  83.     #[ORM\Column(length255nullabletrue)]
  84.     private ?string $organization_address_cp null;
  85.     #[ORM\Column(length255nullabletrue)]
  86.     private ?string $title_position_held_by_tutor null;
  87.     #[ORM\Column(length255nullabletrue)]
  88.     private ?string $collective_agreement_level null;
  89.     #[ORM\Column(length255nullabletrue)]
  90.     private ?string $collective_agreement_hierarchical_coefficient null;
  91.     #[ORM\Column(length255nullabletrue)]
  92.     private ?string $trial_period_duration null;
  93.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  94.     private ?string $comment null;
  95.     #[ORM\Column(nullabletrue)]
  96.     private ?bool $isArchived null;
  97.     #[ORM\Column(length510nullabletrue)]
  98.     private ?string $token null;
  99.     #[ORM\Column(length255nullabletrue)]
  100.     private ?string $setBy null;
  101.     #[ORM\ManyToMany(targetEntityObjectiveContract::class, mappedBy'commitments')]
  102.     private Collection $objectiveContracts;
  103.     #[ORM\OneToMany(mappedBy'commitment'targetEntityCommitmentComment::class)]
  104.     private Collection $commitmentComments;
  105.     #[ORM\Column(length255nullabletrue)]
  106.     private ?string $user_name null;
  107.     #[ORM\Column(length255nullabletrue)]
  108.     private ?string $user_lastname null;
  109.     #[ORM\Column(length255nullabletrue)]
  110.     private ?string $user_phone null;
  111.     #[ORM\Column(length255nullabletrue)]
  112.     private ?string $user_email null;
  113.     public function __construct()
  114.     {
  115.         $this->objectiveContracts = new ArrayCollection();
  116.         $this->commitmentComments = new ArrayCollection();
  117.     }
  118.     public function getId(): ?int
  119.     {
  120.         return $this->id;
  121.     }
  122.     public function getUser(): ?User
  123.     {
  124.         return $this->user;
  125.     }
  126.     public function setUser(?User $user): self
  127.     {
  128.         $this->user $user;
  129.         return $this;
  130.     }
  131.     public function getTutorFirstname(): ?string
  132.     {
  133.         return $this->tutor_firstname;
  134.     }
  135.     public function setTutorFirstname(string $tutor_firstname): self
  136.     {
  137.         $this->tutor_firstname $tutor_firstname;
  138.         return $this;
  139.     }
  140.     public function getTutorLastname(): ?string
  141.     {
  142.         return $this->tutor_lastname;
  143.     }
  144.     public function setTutorLastname(?string $tutor_lastname): self
  145.     {
  146.         $this->tutor_lastname $tutor_lastname;
  147.         return $this;
  148.     }
  149.     public function getAdress(): ?string
  150.     {
  151.         return $this->adress;
  152.     }
  153.     public function setAdress(?string $adress): self
  154.     {
  155.         $this->adress $adress;
  156.         return $this;
  157.     }
  158.     public function getStartDate(): ?\DateTimeInterface
  159.     {
  160.         return $this->start_date;
  161.     }
  162.     public function setStartDate(\DateTimeInterface $start_date): self
  163.     {
  164.         $this->start_date $start_date;
  165.         return $this;
  166.     }
  167.     public function getDescription(): ?string
  168.     {
  169.         return $this->description;
  170.     }
  171.     public function setDescription(?string $description): self
  172.     {
  173.         $this->description $description;
  174.         return $this;
  175.     }
  176.     public function isCompanyAgreement(): ?bool
  177.     {
  178.         return $this->company_agreement;
  179.     }
  180.     public function setCompanyAgreement(bool $company_agreement): self
  181.     {
  182.         $this->company_agreement $company_agreement;
  183.         return $this;
  184.     }
  185.     public function getContractType(): ?string
  186.     {
  187.         return $this->contract_type;
  188.     }
  189.     public function setContractType(?string $contract_type): self
  190.     {
  191.         $this->contract_type $contract_type;
  192.         return $this;
  193.     }
  194.     public function isTaxLearning(): ?bool
  195.     {
  196.         return $this->tax_learning;
  197.     }
  198.     public function setTaxLearning(bool $tax_learning): self
  199.     {
  200.         $this->tax_learning $tax_learning;
  201.         return $this;
  202.     }
  203.     public function isRecentRecruitment(): ?bool
  204.     {
  205.         return $this->recent_recruitment;
  206.     }
  207.     public function setRecentRecruitment(?bool $recent_recruitment): self
  208.     {
  209.         $this->recent_recruitment $recent_recruitment;
  210.         return $this;
  211.     }
  212.     public function getReceivedOn(): ?\DateTimeInterface
  213.     {
  214.         return $this->received_on;
  215.     }
  216.     public function setReceivedOn(\DateTimeInterface $received_on): self
  217.     {
  218.         $this->received_on $received_on;
  219.         return $this;
  220.     }
  221.     public function getReceivedBy(): ?string
  222.     {
  223.         return $this->received_by;
  224.     }
  225.     public function setReceivedBy(?string $received_by): self
  226.     {
  227.         $this->received_by $received_by;
  228.         return $this;
  229.     }
  230.     public function getState(): ?int
  231.     {
  232.         return $this->state;
  233.     }
  234.     public function setState(int $state): self
  235.     {
  236.         $this->state $state;
  237.         return $this;
  238.     }
  239.     public function getAuthor(): ?string
  240.     {
  241.         return $this->author;
  242.     }
  243.     public function setAuthor(?string $author): self
  244.     {
  245.         $this->author $author;
  246.         return $this;
  247.     }
  248.     public function getCompanyName(): ?string
  249.     {
  250.         return $this->company_name;
  251.     }
  252.     public function setCompanyName(?string $company_name): self
  253.     {
  254.         $this->company_name $company_name;
  255.         return $this;
  256.     }
  257.     public function getCompanySiret(): ?string
  258.     {
  259.         return $this->company_siret;
  260.     }
  261.     public function setCompanySiret(?string $company_siret): self
  262.     {
  263.         $this->company_siret $company_siret;
  264.         return $this;
  265.     }
  266.     public function getCompanyIdcc(): ?string
  267.     {
  268.         return $this->company_idcc;
  269.     }
  270.     public function setCompanyIdcc(string $company_idcc): self
  271.     {
  272.         $this->company_idcc $company_idcc;
  273.         return $this;
  274.     }
  275.     public function getCompanyApe(): ?string
  276.     {
  277.         return $this->company_ape;
  278.     }
  279.     public function setCompanyApe(?string $company_ape): self
  280.     {
  281.         $this->company_ape $company_ape;
  282.         return $this;
  283.     }
  284.     public function getCompanyManagerFirstname(): ?string
  285.     {
  286.         return $this->company_manager_firstname;
  287.     }
  288.     public function setCompanyManagerFirstname(?string $company_manager_firstname): self
  289.     {
  290.         $this->company_manager_firstname $company_manager_firstname;
  291.         return $this;
  292.     }
  293.     public function getCompanyManagerLastname(): ?string
  294.     {
  295.         return $this->company_manager_lastname;
  296.     }
  297.     public function setCompanyManagerLastname(?string $company_manager_lastname): self
  298.     {
  299.         $this->company_manager_lastname $company_manager_lastname;
  300.         return $this;
  301.     }
  302.     public function getCompanyEmail(): ?string
  303.     {
  304.         return $this->company_email;
  305.     }
  306.     public function setCompanyEmail(?string $company_email): self
  307.     {
  308.         $this->company_email $company_email;
  309.         return $this;
  310.     }
  311.     public function getCompanyPhone(): ?string
  312.     {
  313.         return $this->company_phone;
  314.     }
  315.     public function setCompanyPhone(?string $company_phone): self
  316.     {
  317.         $this->company_phone $company_phone;
  318.         return $this;
  319.     }
  320.     public function getTutorEmail(): ?string
  321.     {
  322.         return $this->tutor_email;
  323.     }
  324.     public function setTutorEmail(?string $tutor_email): self
  325.     {
  326.         $this->tutor_email $tutor_email;
  327.         return $this;
  328.     }
  329.     public function getCompanyAddress(): ?string
  330.     {
  331.         return $this->company_address;
  332.     }
  333.     public function setCompanyAddress(?string $company_address): self
  334.     {
  335.         $this->company_address $company_address;
  336.         return $this;
  337.     }
  338.     public function isRf(): ?bool
  339.     {
  340.         return $this->rf;
  341.     }
  342.     public function setRf(?bool $rf): self
  343.     {
  344.         $this->rf $rf;
  345.         return $this;
  346.     }
  347.     public function getValidatedBy(): ?Member
  348.     {
  349.         return $this->validated_by;
  350.     }
  351.     public function setValidatedBy(?Member $validated_by): self
  352.     {
  353.         $this->validated_by $validated_by;
  354.         return $this;
  355.     }
  356.     public function getValidationDate(): ?\DateTimeInterface
  357.     {
  358.         return $this->validation_date;
  359.     }
  360.     public function setValidationDate(?\DateTimeInterface $validation_date): self
  361.     {
  362.         $this->validation_date $validation_date;
  363.         return $this;
  364.     }
  365.     public function isDraft(): ?bool
  366.     {
  367.         return $this->draft;
  368.     }
  369.     public function setDraft(?bool $draft): self
  370.     {
  371.         $this->draft $draft;
  372.         return $this;
  373.     }
  374.     public function getRelaunchDate(): ?\DateTimeInterface
  375.     {
  376.         return $this->relaunch_date;
  377.     }
  378.     public function setRelaunchDate(\DateTimeInterface $relaunch_date): self
  379.     {
  380.         $this->relaunch_date $relaunch_date;
  381.         return $this;
  382.     }
  383.     public function getZipcode(): ?string
  384.     {
  385.         return $this->zipcode;
  386.     }
  387.     public function setZipcode(?string $zipcode): self
  388.     {
  389.         $this->zipcode $zipcode;
  390.         return $this;
  391.     }
  392.     public function getCity(): ?string
  393.     {
  394.         return $this->city;
  395.     }
  396.     public function setCity(?string $city): self
  397.     {
  398.         $this->city $city;
  399.         return $this;
  400.     }
  401.     public function getAppointmentCreatedOn(): ?\DateTimeInterface
  402.     {
  403.         return $this->appointment_created_on;
  404.     }
  405.     public function setAppointmentCreatedOn(\DateTimeInterface $appointment_created_on): self
  406.     {
  407.         $this->appointment_created_on $appointment_created_on;
  408.         return $this;
  409.     }
  410.     public function getJobTitle(): ?string
  411.     {
  412.         return $this->job_title;
  413.     }
  414.     public function setJobTitle(?string $job_title): self
  415.     {
  416.         $this->job_title $job_title;
  417.         return $this;
  418.     }
  419.     public function getProvidentFundName(): ?string
  420.     {
  421.         return $this->provident_fund_name;
  422.     }
  423.     public function setProvidentFundName(?string $provident_fund_name): self
  424.     {
  425.         $this->provident_fund_name $provident_fund_name;
  426.         return $this;
  427.     }
  428.     public function getOrganizationAddressCp(): ?string
  429.     {
  430.         return $this->organization_address_cp;
  431.     }
  432.     public function setOrganizationAddressCp(?string $organization_address_cp): self
  433.     {
  434.         $this->organization_address_cp $organization_address_cp;
  435.         return $this;
  436.     }
  437.     public function getTitlePositionHeldByTutor(): ?string
  438.     {
  439.         return $this->title_position_held_by_tutor;
  440.     }
  441.     public function setTitlePositionHeldByTutor(?string $title_position_held_by_tutor): self
  442.     {
  443.         $this->title_position_held_by_tutor $title_position_held_by_tutor;
  444.         return $this;
  445.     }
  446.     public function getCollectiveAgreementLevel(): ?string
  447.     {
  448.         return $this->collective_agreement_level;
  449.     }
  450.     public function setCollectiveAgreementLevel(?string $collective_agreement_level): self
  451.     {
  452.         $this->collective_agreement_level $collective_agreement_level;
  453.         return $this;
  454.     }
  455.     public function getCollectiveAgreementHierarchicalCoefficient(): ?string
  456.     {
  457.         return $this->collective_agreement_hierarchical_coefficient;
  458.     }
  459.     public function setCollectiveAgreementHierarchicalCoefficient(?string $collective_agreement_hierarchical_coefficient): self
  460.     {
  461.         $this->collective_agreement_hierarchical_coefficient $collective_agreement_hierarchical_coefficient;
  462.         return $this;
  463.     }
  464.     public function getTrialPeriodDuration(): ?string
  465.     {
  466.         return $this->trial_period_duration;
  467.     }
  468.     public function setTrialPeriodDuration(?string $trial_period_duration): self
  469.     {
  470.         $this->trial_period_duration $trial_period_duration;
  471.         return $this;
  472.     }
  473.     public function getComment(): ?string
  474.     {
  475.         return $this->comment;
  476.     }
  477.     public function setComment(?string $comment): self
  478.     {
  479.         $this->comment $comment;
  480.         return $this;
  481.     }
  482.     public function isIsArchived(): ?bool
  483.     {
  484.         return $this->isArchived;
  485.     }
  486.     public function setIsArchived(?bool $isArchived): self
  487.     {
  488.         $this->isArchived $isArchived;
  489.         return $this;
  490.     }
  491.     public function getToken(): ?string
  492.     {
  493.         return $this->token;
  494.     }
  495.     public function setToken(?string $token): self
  496.     {
  497.         $this->token $token;
  498.         return $this;
  499.     }
  500.     public function getSetBy(): ?string
  501.     {
  502.         return $this->setBy;
  503.     }
  504.     public function setSetBy(?string $setBy): self
  505.     {
  506.         $this->setBy $setBy;
  507.         return $this;
  508.     }
  509.     /**
  510.      * @return Collection<int, ObjectiveContract>
  511.      */
  512.     public function getObjectiveContracts(): Collection
  513.     {
  514.         return $this->objectiveContracts;
  515.     }
  516.     public function addObjectiveContract(ObjectiveContract $objectiveContract): self
  517.     {
  518.             $this->objectiveContracts->add($objectiveContract);
  519.             $objectiveContract->addCommitment($this);
  520.         return $this;
  521.     }
  522.     public function removeObjectiveContract(ObjectiveContract $objectiveContract): self
  523.     {
  524.         if ($this->objectiveContracts->removeElement($objectiveContract)) {
  525.             $objectiveContract->removeCommitment($this);
  526.         }
  527.         return $this;
  528.     }
  529.     /**
  530.      * @return Collection<int, CommitmentComment>
  531.      */
  532.     public function getCommitmentComments(): Collection
  533.     {
  534.         return $this->commitmentComments;
  535.     }
  536.     public function addCommitmentComment(CommitmentComment $commitmentComment): self
  537.     {
  538.         if (!$this->commitmentComments->contains($commitmentComment)) {
  539.             $this->commitmentComments->add($commitmentComment);
  540.             $commitmentComment->setCommitment($this);
  541.         }
  542.         return $this;
  543.     }
  544.     public function removeCommitmentComment(CommitmentComment $commitmentComment): self
  545.     {
  546.         if ($this->commitmentComments->removeElement($commitmentComment)) {
  547.             // set the owning side to null (unless already changed)
  548.             if ($commitmentComment->getCommitment() === $this) {
  549.                 $commitmentComment->setCommitment(null);
  550.             }
  551.         }
  552.         return $this;
  553.     }
  554.     public function getUserName(): ?string
  555.     {
  556.         return $this->user_name;
  557.     }
  558.     public function setUserName(?string $user_name): self
  559.     {
  560.         $this->user_name $user_name;
  561.         return $this;
  562.     }
  563.     public function getUserLastname(): ?string
  564.     {
  565.         return $this->user_lastname;
  566.     }
  567.     public function setUserLastname(?string $user_lastname): self
  568.     {
  569.         $this->user_lastname $user_lastname;
  570.         return $this;
  571.     }
  572.     public function getUserPhone(): ?string
  573.     {
  574.         return $this->user_phone;
  575.     }
  576.     public function setUserPhone(?string $user_phone): self
  577.     {
  578.         $this->user_phone $user_phone;
  579.         return $this;
  580.     }
  581.     public function getUserEmail(): ?string
  582.     {
  583.         return $this->user_email;
  584.     }
  585.     public function setUserEmail(?string $user_email): self
  586.     {
  587.         $this->user_email $user_email;
  588.         return $this;
  589.     }
  590. }