src/Entity/Parameters.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\ParametersRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. /**
  8.  * @ApiResource()
  9.  * @ApiResource(
  10.  *     collectionOperations={"get","post"},
  11.  *     itemOperations={"get","put","patch","delete"},
  12.  *     normalizationContext={"groups"={"parameters"}},
  13.  *     denormalizationContext={"groups"={"parameters"}},
  14.  *     attributes={"pagination_enabled"=false}
  15.  * )
  16.  * @ORM\Entity(repositoryClass=ParametersRepository::class)
  17.  */
  18. class Parameters
  19. {
  20.     /**
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue
  23.      * @ORM\Column(type="integer")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @ORM\Column(type="text", nullable=true)
  28.      * @Groups("parameters")
  29.      */
  30.     private $legalInformationFr;
  31.     /**
  32.      * @ORM\Column(type="text", nullable=true)
  33.      * @Groups("parameters")
  34.      */
  35.     private $generalTermsFr;
  36.     /**
  37.      * @ORM\Column(type="text", nullable=true)
  38.      * @Groups("parameters")
  39.      */
  40.     private $legalInformationEn;
  41.     /**
  42.      * @ORM\Column(type="text", nullable=true)
  43.      * @Groups("parameters")
  44.      */
  45.     private $generalTermsEn;
  46.     /**
  47.      * @ORM\Column(type="text", nullable=true)
  48.      * @Groups("parameters")
  49.      */
  50.     private $legalInformationDe;
  51.     /**
  52.      * @ORM\Column(type="text", nullable=true)
  53.      * @Groups("parameters")
  54.      */
  55.     private $generalTermsDe;
  56.     /**
  57.      * @ORM\Column(type="text", nullable=true)
  58.      * @Groups("parameters")
  59.      */
  60.     private $legalInformationNl;
  61.     /**
  62.      * @ORM\Column(type="text", nullable=true)
  63.      * @Groups("parameters")
  64.      */
  65.     private $generalTermsNl;
  66.     /**
  67.      * @ORM\Column(type="string", length=255)
  68.      * @Groups("parameters")
  69.      */
  70.     private $orderEmail;
  71.     /**
  72.      * @ORM\Column(type="string", length=255)
  73.      * @Groups("parameters")
  74.      */
  75.     private $noreplyEmail;
  76.     /**
  77.      * @ORM\Column(type="time")
  78.      * @Groups("parameters")
  79.      */
  80.     private $orderHour;
  81.     public function getId(): ?int
  82.     {
  83.         return $this->id;
  84.     }
  85.     public function getLegalInformationFr(): ?string
  86.     {
  87.         return $this->legalInformationFr;
  88.     }
  89.     public function setLegalInformationFr(?string $legalInformationFr): self
  90.     {
  91.         $this->legalInformationFr $legalInformationFr;
  92.         return $this;
  93.     }
  94.     public function getGeneralTermsFr(): ?string
  95.     {
  96.         return $this->generalTermsFr;
  97.     }
  98.     public function setGeneralTermsFr(?string $generalTermsFr): self
  99.     {
  100.         $this->generalTermsFr $generalTermsFr;
  101.         return $this;
  102.     }
  103.     public function getLegalInformationEn(): ?string
  104.     {
  105.         return $this->legalInformationEn;
  106.     }
  107.     public function setLegalInformationEn(?string $legalInformationEn): self
  108.     {
  109.         $this->legalInformationEn $legalInformationEn;
  110.         return $this;
  111.     }
  112.     public function getGeneralTermsEn(): ?string
  113.     {
  114.         return $this->generalTermsEn;
  115.     }
  116.     public function setGeneralTermsEn(?string $generalTermsEn): self
  117.     {
  118.         $this->generalTermsEn $generalTermsEn;
  119.         return $this;
  120.     }
  121.     public function getLegalInformationDe(): ?string
  122.     {
  123.         return $this->legalInformationDe;
  124.     }
  125.     public function setLegalInformationDe(string $legalInformationDe): self
  126.     {
  127.         $this->legalInformationDe $legalInformationDe;
  128.         return $this;
  129.     }
  130.     public function getGeneralTermsDe(): ?string
  131.     {
  132.         return $this->generalTermsDe;
  133.     }
  134.     public function setGeneralTermsDe(string $generalTermsDe): self
  135.     {
  136.         $this->generalTermsDe $generalTermsDe;
  137.         return $this;
  138.     }
  139.     public function getLegalInformationNl(): ?string
  140.     {
  141.         return $this->legalInformationNl;
  142.     }
  143.     public function setLegalInformationNl(string $legalInformationNl): self
  144.     {
  145.         $this->legalInformationNl $legalInformationNl;
  146.         return $this;
  147.     }
  148.     public function getGeneralTermsNl(): ?string
  149.     {
  150.         return $this->generalTermsNl;
  151.     }
  152.     public function setGeneralTermsNl(string $generalTermsNl): self
  153.     {
  154.         $this->generalTermsNl $generalTermsNl;
  155.         return $this;
  156.     }
  157.     public function getOrderEmail(): ?string
  158.     {
  159.         return $this->orderEmail;
  160.     }
  161.     public function setOrderEmail(string $orderEmail): self
  162.     {
  163.         $this->orderEmail $orderEmail;
  164.         return $this;
  165.     }
  166.     public function getNoreplyEmail(): ?string
  167.     {
  168.         return $this->noreplyEmail;
  169.     }
  170.     public function setNoreplyEmail(string $noreplyEmail): self
  171.     {
  172.         $this->noreplyEmail $noreplyEmail;
  173.         return $this;
  174.     }
  175.     public function getOrderHour(): ?\DateTimeInterface
  176.     {
  177.         return $this->orderHour;
  178.     }
  179.     public function setOrderHour(\DateTimeInterface $orderHour): self
  180.     {
  181.         $this->orderHour $orderHour;
  182.         return $this;
  183.     }
  184. }