|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
-
- namespace Lc\ShopBundle\Model;
-
- use Doctrine\ORM\Mapping as ORM;
-
- trait ReductionPropertyTrait
- {
- /**
- * @ORM\Column(type="datetime", nullable=true)
- */
- protected $dateStart;
-
- /**
- * @ORM\Column(type="datetime", nullable=true)
- */
- protected $dateEnd;
-
- /**
- * @ORM\Column(type="boolean")
- */
- protected $permanent;
-
-
- public function getDateStart(): ?\DateTimeInterface
- {
- return $this->dateStart;
- }
-
- public function setDateStart(?\DateTimeInterface $dateStart): self
- {
- $this->dateStart = $dateStart;
-
- return $this;
- }
-
- public function getDateEnd(): ?\DateTimeInterface
- {
- return $this->dateEnd;
- }
-
- public function setDateEnd(?\DateTimeInterface $dateEnd): self
- {
- $this->dateEnd = $dateEnd;
-
- return $this;
- }
-
- public function getPermanent(): ?bool
- {
- return $this->permanent;
- }
-
- public function setPermanent(bool $permanent): self
- {
- $this->permanent = $permanent;
-
- return $this;
- }
-
- }
|