You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
959B

  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. /**
  17. * @ORM\Column(type="string", length=255, nullable=true)
  18. */
  19. protected $color;
  20. public function __toString()
  21. {
  22. return $this->getTitle();
  23. }
  24. public function getTitle(): ?string
  25. {
  26. return $this->title;
  27. }
  28. public function setTitle(string $title): self
  29. {
  30. $this->title = $title;
  31. return $this;
  32. }
  33. public function getColor(): ?string
  34. {
  35. return $this->color;
  36. }
  37. public function setColor(string $color): self
  38. {
  39. $this->color = $color;
  40. return $this;
  41. }
  42. }