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.

69 satır
1.7KB

  1. <?php
  2. namespace Lc\SovBundle\Model\File;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Lc\SovBundle\Doctrine\EntityInterface;
  6. use Lc\SovBundle\Doctrine\Extension\BlameableInterface;
  7. use Lc\SovBundle\Doctrine\Extension\BlameableTrait;
  8. use Lc\SovBundle\Doctrine\Extension\DevAliasInterface;
  9. use Lc\SovBundle\Doctrine\Extension\DevAliasTrait;
  10. use Lc\SovBundle\Doctrine\Extension\SortableInterface;
  11. use Lc\SovBundle\Doctrine\Extension\SortableTrait;
  12. use Lc\SovBundle\Doctrine\Extension\TimestampableInterface;
  13. use Lc\SovBundle\Doctrine\Extension\TimestampableTrait;
  14. use Lc\SovBundle\Doctrine\Extension\TranslatableInterface;
  15. use Lc\SovBundle\Doctrine\Extension\TranslatableTrait;
  16. abstract class FileModel implements SortableInterface, BlameableInterface, TimestampableInterface, TranslatableInterface,
  17. DevAliasInterface, EntityInterface, FileInterface
  18. {
  19. use DevAliasTrait;
  20. use BlameableTrait;
  21. use TimestampableTrait;
  22. use TranslatableTrait;
  23. use SortableTrait;
  24. #[Gedmo\Translatable]
  25. #[ORM\Column(type: "string", length: 255, nullable: true)]
  26. protected $path;
  27. #[Gedmo\Translatable]
  28. #[ORM\Column(type: "string", length: 255, nullable: true)]
  29. protected $legend;
  30. public function __toString()
  31. {
  32. return '' . $this->getLegend();
  33. }
  34. public function getPath(): ?string
  35. {
  36. return $this->path;
  37. }
  38. public function setPath(?string $path): self
  39. {
  40. $this->path = $path;
  41. return $this;
  42. }
  43. public function getLegend(): ?string
  44. {
  45. return $this->legend;
  46. }
  47. public function setLegend(?string $legend): self
  48. {
  49. $this->legend = $legend;
  50. return $this;
  51. }
  52. }