Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

30 lines
580B

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