src/Entity/SaasDocAllowed.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SaasDocAllowedRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints\GreaterThanOrEqual;
  6. use Symfony\Component\Validator\Constraints\NotBlank;
  7. #[ORM\Entity(repositoryClassSaasDocAllowedRepository::class)]
  8. class SaasDocAllowed
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length20nullabletrue)]
  15.     private ?string $docType null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?\DateInterval $period null;
  18.     #[ORM\ManyToOne(inversedBy'docAlloweds')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?SaasConfiguration $saasConfiguration null;
  21.     #[ORM\Column]
  22.     #[NotBlank]
  23.     #[GreaterThanOrEqual(0)]
  24.     private ?int $total null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?bool $sealed null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getDocType(): ?string
  32.     {
  33.         return $this->docType;
  34.     }
  35.     public function setDocType(string $docType): self
  36.     {
  37.         $this->docType $docType;
  38.         return $this;
  39.     }
  40.     public function getPeriod(): ?\DateInterval
  41.     {
  42.         return $this->period;
  43.     }
  44.     public function setPeriod(\DateInterval $period): self
  45.     {
  46.         $this->period $period;
  47.         return $this;
  48.     }
  49.     public function getSaasConfiguration(): ?SaasConfiguration
  50.     {
  51.         return $this->saasConfiguration;
  52.     }
  53.     public function setSaasConfiguration(?SaasConfiguration $saasConfiguration): self
  54.     {
  55.         $this->saasConfiguration $saasConfiguration;
  56.         return $this;
  57.     }
  58.     public function getTotal(): ?int
  59.     {
  60.         return $this->total;
  61.     }
  62.     public function setTotal(int $total): self
  63.     {
  64.         $this->total $total;
  65.         return $this;
  66.     }
  67.     public function isSealed(): ?bool
  68.     {
  69.         return $this->sealed;
  70.     }
  71.     public function setSealed(?bool $sealed): self
  72.     {
  73.         $this->sealed $sealed;
  74.         return $this;
  75.     }
  76. }