|
- <?php
-
- namespace App\Model;
-
- use App\IModel\BlameableInterface;
- use App\IModel\SeoInterface;
- use App\IModel\SluggableInterface;
- use App\IModel\SortableInterface;
- use App\IModel\TimestampableInterface;
- use App\IModel\StatusInterface;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\MappedSuperclass
- */
- abstract class AbstractDocumentEntity implements BlameableInterface, SeoInterface, SluggableInterface, SortableInterface, StatusInterface, TimestampableInterface
- {
-
- use BlameableTrait;
- use SeoTrait;
- use SluggableTrait;
- use SortableTrait;
- use StatusTrait;
- use TimestampableTrait;
-
- /**
- * @ORM\Column(type="string", length=255)
- */
- protected $title;
-
- /**
- * @ORM\Column(type="text", nullable=true)
- */
- protected $description;
-
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- protected $devAlias;
-
-
- 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 getDevAlias(): ?string
- {
- return $this->devAlias;
- }
-
- public function setDevAlias(?string $devAlias): self
- {
- $this->devAlias = $devAlias;
-
- return $this;
- }
-
- }
|