src/Twig/Component/NellappVideoPlayer.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Twig\Component;
  3. use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
  4. #[AsTwigComponent(
  5. template: 'Components/nellapp_video_player.html.twig',
  6. )]
  7. class NellappVideoPlayer
  8. {
  9. public ?string $videoSrc = null;
  10. public ?string $alt = null;
  11. public ?string $thumbnailUrl = null;
  12. public bool $openInModal = false;
  13. public function getVideoSrc(): ?string
  14. {
  15. return $this->videoSrc;
  16. }
  17. public function getAlt(): ?string
  18. {
  19. return $this->alt;
  20. }
  21. public function getThumbnailUrl(): ?string
  22. {
  23. return $this->thumbnailUrl;
  24. }
  25. public function isOpenInModal(): bool
  26. {
  27. return $this->openInModal;
  28. }
  29. }