src/Entity/Configuration.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ConfigurationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ConfigurationRepository::class)
  7.  */
  8. class Configuration
  9. {
  10.     const FIELD_EMAIL_REMINDER_ONE 'email_reminder_one';
  11.     const FIELD_EMAIL_REMINDER_TWO 'email_reminder_two';
  12.     
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=50)
  21.      */
  22.     private $field;
  23.     /**
  24.      * @ORM\Column(type="text", nullable=true)
  25.      */
  26.     private $value;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="configurations")
  29.      */
  30.     private $company;
  31.     public function __toString(): string
  32.     {
  33.         return $this->field;
  34.     }
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getField(): ?string
  40.     {
  41.         return $this->field;
  42.     }
  43.     public function setField(string $field): self
  44.     {
  45.         $this->field $field;
  46.         return $this;
  47.     }
  48.     public function getValue(): ?string
  49.     {
  50.         return $this->value;
  51.     }
  52.     public function setValue(?string $value): self
  53.     {
  54.         $this->value $value;
  55.         return $this;
  56.     }
  57.     public function getCompany(): ?Company
  58.     {
  59.         return $this->company;
  60.     }
  61.     public function setCompany(?Company $company): self
  62.     {
  63.         $this->company $company;
  64.         return $this;
  65.     }
  66. }