src/Entity/Company/Juridiction.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Company;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Utils\TimestampTrait;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\Company\JuridictionRepository")
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class Juridiction
  11. {
  12.     use TimestampTrait;
  13.     /**
  14.      * @ORM\Id()
  15.      * @ORM\GeneratedValue()
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $legalStatut;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $managementDoc;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $staff;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      * @Assert\PositiveOrZero
  34.      */
  35.     private $volontary;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\Company\Presentation", inversedBy="juridictions")
  38.      */
  39.     private $nature;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getLegalStatut(): ?string
  45.     {
  46.         return $this->legalStatut;
  47.     }
  48.     public function setLegalStatut(?string $legalStatut): self
  49.     {
  50.         $this->legalStatut $legalStatut;
  51.         return $this;
  52.     }
  53.     public function getManagementDoc(): ?string
  54.     {
  55.         return $this->managementDoc;
  56.     }
  57.     public function setManagementDoc(string $managementDoc): self
  58.     {
  59.         $this->managementDoc $managementDoc;
  60.         return $this;
  61.     }
  62.     public function getStaff(): ?string
  63.     {
  64.         return $this->staff;
  65.     }
  66.     public function setStaff(string $staff): self
  67.     {
  68.         $this->staff $staff;
  69.         return $this;
  70.     }
  71.     public function getVolontary(): ?string
  72.     {
  73.         return $this->volontary;
  74.     }
  75.     public function setVolontary(?string $volontary): self
  76.     {
  77.         $this->volontary $volontary;
  78.         return $this;
  79.     }
  80.     public function getNature(): ?Presentation
  81.     {
  82.         return $this->nature;
  83.     }
  84.     public function setNature(?Presentation $nature): self
  85.     {
  86.         $this->nature $nature;
  87.         return $this;
  88.     }
  89. }