Deprecated: Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/translation/Resources/functions.php on line 18

Deprecated: Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/dotenv/Dotenv.php on line 110

Deprecated: Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/GenericRuntime.php on line 89

Deprecated: Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/RuntimeInterface.php on line 26

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/Input.php on line 36

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/SliderImages.php line 24

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\ActiveTrait;
  4. use App\Entity\Traits\DeleteTrait;
  5. use App\Entity\Traits\ImageUploadTrait;
  6. use App\Entity\Traits\LinkTrait;
  7. use App\Entity\Traits\MetaTrait;
  8. use App\Entity\Traits\TitleAndContentTrait;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use Gedmo\Timestampable\Traits\TimestampableEntity;
  12. /**
  13.  * Slider.
  14.  *
  15.  * @Gedmo\Loggable
  16.  *
  17.  * @Gedmo\TranslationEntity(class="App\Entity\SliderImagesTranslations")
  18.  */
  19. #[ORM\Entity(repositoryClass\App\Repository\SliderRepository::class)]
  20. #[ORM\Table(name'slider_images')]
  21. class SliderImages
  22. {
  23.     use TitleAndContentTrait;
  24.     use LinkTrait;
  25.     use MetaTrait;
  26.     use ActiveTrait;
  27.     use DeleteTrait;
  28.     use ImageUploadTrait;
  29.     use TimestampableEntity;
  30.     public ?Slider $images null;
  31.     #[ORM\Column(name'id'type'integer')]
  32.     #[ORM\Id]
  33.     #[ORM\GeneratedValue(strategy'AUTO')]
  34.     private readonly int $id;
  35.     /**
  36.      * @Gedmo\Translatable
  37.      */
  38.     #[ORM\Column(name'html'type'text'length255nullabletrue)]
  39.     private ?string $html null;
  40.     #[ORM\Column(name'position'type'integer'length2nullablefalse)]
  41.     private ?int $position null;
  42.     /**
  43.      * @Gedmo\Translatable
  44.      */
  45.     #[ORM\Column(name'link'type'string'length255nullabletrue)]
  46.     private ?string $link null;
  47.     #[ORM\ManyToOne(targetEntity'Slider'inversedBy'images')]
  48.     #[ORM\JoinColumn(name'slider_id'referencedColumnName'id')]
  49.     private ?Slider $slider null;
  50.     #[ORM\Column(name'buttontext'type'string'length255nullabletrue)]
  51.     private ?string $buttontext null;
  52.     #[ORM\Column(name'icon'type'string'length255nullabletrue)]
  53.     private ?string $icon null;
  54.     /**
  55.      * Get id.
  56.      *
  57.      * @return int
  58.      */
  59.     public function getId()
  60.     {
  61.         return $this->id;
  62.     }
  63.     /**
  64.      * Set html.
  65.      *
  66.      * @param string $html
  67.      *
  68.      * @return SliderImages
  69.      */
  70.     public function setHtml($html)
  71.     {
  72.         $this->html $html;
  73.         return $this;
  74.     }
  75.     /**
  76.      * Get html.
  77.      *
  78.      * @return string
  79.      */
  80.     public function getHtml()
  81.     {
  82.         return $this->html;
  83.     }
  84.     /**
  85.      * Set link.
  86.      *
  87.      * @param string $link
  88.      *
  89.      * @return SliderImages
  90.      */
  91.     public function setLink($link)
  92.     {
  93.         $this->link $link;
  94.         return $this;
  95.     }
  96.     /**
  97.      * Get link.
  98.      *
  99.      * @return string
  100.      */
  101.     public function getLink()
  102.     {
  103.         return $this->link;
  104.     }
  105.     /**
  106.      * Set images.
  107.      *
  108.      * @return SliderImages
  109.      */
  110.     public function setImages(Slider $images null)
  111.     {
  112.         $this->images $images;
  113.         return $this;
  114.     }
  115.     /**
  116.      * Get images.
  117.      *
  118.      * @return Slider
  119.      */
  120.     public function getImages()
  121.     {
  122.         return $this->images;
  123.     }
  124.     /**
  125.      * Set position.
  126.      *
  127.      * @param int $position
  128.      *
  129.      * @return SliderImages
  130.      */
  131.     public function setPosition($position)
  132.     {
  133.         $this->position $position;
  134.         return $this;
  135.     }
  136.     /**
  137.      * Get position.
  138.      *
  139.      * @return int
  140.      */
  141.     public function getPosition()
  142.     {
  143.         return $this->position;
  144.     }
  145.     /**
  146.      * Set slider.
  147.      *
  148.      * @return SliderImages
  149.      */
  150.     public function setSlider(Slider $slider null)
  151.     {
  152.         $this->slider $slider;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get slider.
  157.      *
  158.      * @return Slider
  159.      */
  160.     public function getSlider()
  161.     {
  162.         return $this->slider;
  163.     }
  164.     /**
  165.      * Set buttontext.
  166.      *
  167.      * @param string $buttontext
  168.      *
  169.      * @return SliderImages
  170.      */
  171.     public function setButtontext($buttontext)
  172.     {
  173.         $this->buttontext $buttontext;
  174.         return $this;
  175.     }
  176.     /**
  177.      * Get buttontext.
  178.      *
  179.      * @return string
  180.      */
  181.     public function getButtontext()
  182.     {
  183.         return $this->buttontext;
  184.     }
  185.     public function getIcon()
  186.     {
  187.         return $this->icon;
  188.     }
  189.     public function setIcon($icon)
  190.     {
  191.         $this->icon $icon;
  192.         return $this;
  193.     }
  194.     // REQUIRED BY THE META LINKS TRAIT - NOT REALLY NEEDED HERE BUT WHATEVS :)
  195.     public function getLinkedPageId(): int
  196.     {
  197.         return 1;
  198.     }
  199. }