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

39 lines
948B

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Product;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\EntityInterface;
  5. use Lc\SovBundle\Doctrine\Extension\SortableInterface;
  6. use Lc\SovBundle\Doctrine\Pattern\AbstractFullEntity;
  7. use Lc\SovBundle\Model\File\FileInterface;
  8. /**
  9. * @ORM\MappedSuperclass()
  10. */
  11. abstract class QualityLabel extends AbstractFullEntity implements EntityInterface, SortableInterface,
  12. QualityLabelInterface
  13. {
  14. /**
  15. * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\File\FileInterface", cascade={"persist", "remove"})
  16. */
  17. protected $image;
  18. public function __toString()
  19. {
  20. return $this->getTitle();
  21. }
  22. public function getImage(): ?FileInterface
  23. {
  24. return $this->image;
  25. }
  26. public function setImage(?FileInterface $image): self
  27. {
  28. $this->image = $image;
  29. return $this;
  30. }
  31. }