Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

38 lines
660B

  1. <?php
  2. namespace Lc\PietroBundle\Model\Workshop;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\EntityInterface;
  5. use Lc\SovBundle\Doctrine\Extension\ImageTrait;
  6. /**
  7. * @ORM\MappedSuperclass()
  8. */
  9. abstract class Type implements TypeInterface, EntityInterface
  10. {
  11. use ImageTrait;
  12. /**
  13. * @ORM\Column(type="string", length=255)
  14. */
  15. protected $title;
  16. public function __toString()
  17. {
  18. return $this->getTitle();
  19. }
  20. public function getTitle(): ?string
  21. {
  22. return $this->title;
  23. }
  24. public function setTitle(string $title): self
  25. {
  26. $this->title = $title;
  27. return $this;
  28. }
  29. }