91 lines
1.5 KiB
PHP
91 lines
1.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\ContentBundle\Entity;
|
|
|
|
class Slide
|
|
{
|
|
protected int $id;
|
|
protected string $description;
|
|
|
|
protected Image $image;
|
|
|
|
protected array $custom_data;
|
|
protected string $link;
|
|
|
|
protected Slider $slider;
|
|
|
|
public function getSlider(): Slider
|
|
{
|
|
return $this->slider;
|
|
}
|
|
|
|
public function setSlider(Slider $slider): self
|
|
{
|
|
$this->slider = $slider;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function setImage(Image $image): self
|
|
{
|
|
$this->image = $image;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getImage(): Image
|
|
{
|
|
return $this->image;
|
|
}
|
|
|
|
public function setCustomData(array $custom_data): self
|
|
{
|
|
$this->custom_data = $custom_data;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getCustomData(): array
|
|
{
|
|
return $this->custom_data;
|
|
}
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setId(int $id): self
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function setDescription(string $description): self
|
|
{
|
|
$this->description = $description;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDescription(): string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function setLink(string $link): self
|
|
{
|
|
$this->link = $link;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getLink(): string
|
|
{
|
|
return $this->link;
|
|
}
|
|
}
|