您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

32 行
589B

  1. <?php
  2. namespace App\Entity\File;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Model\File\FileInterface;
  5. use Lc\SovBundle\Model\File\FileModel;
  6. use Lc\SovBundle\Repository\File\FileRepository;
  7. /**
  8. * @ORM\Entity(repositoryClass=FileRepository::class)
  9. */
  10. class File extends FileModel implements FileInterface
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. public function getId(): ?int
  19. {
  20. return $this->id;
  21. }
  22. public function __toString()
  23. {
  24. return '' . $this->getLegend();
  25. }
  26. }