|
- <?php
-
- namespace App\Entity\Site;
-
- use App\Repository\Site\BlockRepository;
- use Doctrine\ORM\Mapping as ORM;
- use Lc\SovBundle\Doctrine\EntityInterface;
- use Lc\SovBundle\Doctrine\Extension\StatusInterface;
- use Lc\SovBundle\Doctrine\Extension\StatusTrait;
-
- /**
- * @ORM\Entity(repositoryClass=BlockRepository::class)
- */
- class Block implements EntityInterface, StatusInterface
- {
- use StatusTrait;
-
- /**
- * @ORM\Id
- * @ORM\GeneratedValue
- * @ORM\Column(type="integer")
- */
- private $id;
-
- /**
- * @ORM\Column(type="string", length=255)
- */
- private $devAlias;
-
- /**
- * @ORM\Column(type="string", length=255)
- */
- private $title;
-
- /**
- * @ORM\Column(type="text", nullable=true)
- */
- private $description;
-
-
- public function __toString()
- {
- return $this->title;
- }
-
- public function getId(): ?int
- {
- return $this->id;
- }
-
- public function getDevAlias(): ?string
- {
- return $this->devAlias;
- }
-
- public function setDevAlias(string $devAlias): self
- {
- $this->devAlias = $devAlias;
-
- return $this;
- }
-
- 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;
- }
- }
|