src/Entity/ChildrensComboSlider.php line 16
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\ChildrensComboSliderTranslation;use App\Repository\ChildrensComboSliderRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Translatable\Translatable;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Table(name: 'childrens_combo_slider')]#[ORM\Entity(repositoryClass: ChildrensComboSliderRepository::class)]#[Gedmo\TranslationEntity(class: ChildrensComboSliderTranslation::class)]class ChildrensComboSlider implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = ChildrensComboSliderTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $image = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $title = null;#[ORM\Column(type: 'boolean', nullable: true, options: ['default' => true])]private ?bool $isActive = true;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $body = null;#[ORM\Column(type: 'integer', nullable: true)]private ?int $position = null;public function __toString(): string{return $this->title ?? "";}public function getId(): ?int{return $this->id;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): void{$this->image = $image;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): void{$this->title = $title;}public function getBody(): ?string{return $this->body;}public function setBody(?string $body): void{$this->body = $body;}public function getIsActive(): ?bool{return $this->isActive;}public function setIsActive(?bool $isActive): void{$this->isActive = $isActive;}public function getPosition(): ?int{return $this->position;}public function setPosition(?int $position): void{$this->position = $position;}}