<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\PageInfosRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageInfosRepository::class)]
#[ApiResource]
class PageInfos
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'pageInfos')]
private ?Pages $page = null;
#[ORM\Column(length: 100)]
private ?string $key = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $value = null;
#[ORM\ManyToOne(inversedBy: 'pageInfos')]
private ?Slider $slider = null;
public function getId(): ?int
{
return $this->id;
}
public function getPage(): ?Pages
{
return $this->page;
}
public function setPage(?Pages $page): static
{
$this->page = $page;
return $this;
}
public function getKey(): ?string
{
return $this->key;
}
public function setKey(string $key): static
{
$this->key = $key;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): static
{
$this->value = $value;
return $this;
}
public function getSlider(): ?Slider
{
return $this->slider;
}
public function setSlider(?Slider $slider): static
{
$this->slider = $slider;
return $this;
}
}