src/Entity/AcquisitionMode.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  5. use App\Repository\AcquisitionModeRepository;
  6. /**
  7.  * @ORM\Entity(repositoryClass=AcquisitionModeRepository::class)
  8.  * @UniqueEntity(fields={"modeName", "baseName"}, ignoreNull=false)
  9.  */
  10. class AcquisitionMode
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=50)
  20.      */
  21.     private $modeName;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $baseName;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $description;
  30.     /**
  31.      * @ORM\Column(type="boolean", nullable=true)
  32.      */
  33.     private $qualificationEnabled;
  34.     /**
  35.      * @ORM\Column(type="boolean", options={"default" : 1})
  36.      */
  37.     private bool $redeliverOnUnReach=true;
  38.     public function __construct()
  39.     {
  40.         $this->qualificationEnabled=true;
  41.     }
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     /**
  47.      * @return mixed
  48.      */
  49.     public function getModeName()
  50.     {
  51.         return $this->modeName;
  52.     }
  53.     /**
  54.      * @param mixed $modeName
  55.      */
  56.     public function setModeName($modeName): void
  57.     {
  58.         $this->modeName $modeName;
  59.     }
  60.     /**
  61.      * @return mixed
  62.      */
  63.     public function getBaseName()
  64.     {
  65.         return $this->baseName;
  66.     }
  67.     /**
  68.      * @param mixed $baseName
  69.      */
  70.     public function setBaseName($baseName): void
  71.     {
  72.         $this->baseName $baseName;
  73.     }
  74.     public function getModeAndBaseName(): string
  75.     {
  76.         return $this->modeName '|' $this->baseName;
  77.     }
  78.     public function getDescription(): ?string
  79.     {
  80.         return $this->description;
  81.     }
  82.     public function setDescription(?string $description): self
  83.     {
  84.         $this->description $description;
  85.         return $this;
  86.     }
  87.     public function getQualificationEnabled(): ?bool
  88.     {
  89.         return $this->qualificationEnabled;
  90.     }
  91.     public function setQualificationEnabled(?bool $qualificationEnabled): self
  92.     {
  93.         $this->qualificationEnabled $qualificationEnabled;
  94.         return $this;
  95.     }
  96.     public function isRedeliverOnUnReach(): bool
  97.     {
  98.         return $this->redeliverOnUnReach;
  99.     }
  100.     public function setRedeliverOnUnReach(bool $redeliverOnUnReach): void
  101.     {
  102.         $this->redeliverOnUnReach $redeliverOnUnReach;
  103.     }
  104. }