|
- <?php
-
- namespace Lc\PietroBundle\Model\Workshop;
-
- use Doctrine\ORM\Mapping as ORM;
- use Lc\SovBundle\Doctrine\EntityInterface;
- use Lc\SovBundle\Doctrine\Extension\ImageTrait;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class Type implements TypeInterface, EntityInterface
- {
- use ImageTrait;
-
- /**
- * @ORM\Column(type="string", length=255)
- */
- protected $title;
-
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- protected $color;
-
- public function __toString()
- {
- return $this->getTitle();
- }
-
- public function getTitle(): ?string
- {
- return $this->title;
- }
-
- public function setTitle(string $title): self
- {
- $this->title = $title;
-
- return $this;
- }
-
- public function getColor(): ?string
- {
- return $this->color;
- }
-
- public function setColor(string $color): self
- {
- $this->color = $color;
-
- return $this;
- }
- }
|