|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?php
-
- namespace Lc\ShopBundle\Model;
-
- use Doctrine\ORM\Mapping as ORM;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Lc\ShopBundle\Context\SluggableInterface;
- use Lc\ShopBundle\Context\SortableInterface;
- use Lc\ShopBundle\Context\StatusInterface;
- use Symfony\Component\HttpFoundation\File\File;
- use Vich\UploaderBundle\Mapping\Annotation as Vich;
-
-
- abstract class AbstractDocumentEntity extends AbstractEntity implements StatusInterface, SortableInterface, SluggableInterface
- {
- use SortableTrait;
-
- use StatusTrait;
-
- use SluggableTrait;
-
-
-
- protected $title;
-
-
-
-
- protected $description;
-
-
-
- protected $image;
-
-
-
- protected $imageFile;
-
-
-
- protected $devAlias;
-
-
- public function setImageFile(File $image = null)
- {
- $this->imageFile = $image;
-
-
-
-
- if ($image) {
-
- $this->updatedAt = new \DateTime('now');
- }
- }
-
- public function getImageFile()
- {
- return $this->imageFile;
- }
- public function getTitle(): ?string
- {
- return $this->title;
- }
-
- public function setTitle(string $title): self
- {
- $this->title = $title;
-
- return $this;
- }
-
-
-
- public function getDescription(): ?string
- {
- return $this->description;
- }
-
- public function setDescription(?string $description): self
- {
- $this->description = $description;
-
- return $this;
- }
-
- public function getImage(): ?string
- {
- return $this->image;
- }
-
- public function setImage(?string $image): self
- {
- $this->image = $image;
-
- return $this;
- }
-
- public function getDevAlias(): ?string
- {
- return $this->devAlias;
- }
-
- public function setDevAlias(?string $devAlias): self
- {
- $this->devAlias = $devAlias;
-
- return $this;
- }
-
- }
|