<?php
namespace App\Entity;
use App\Repository\PageRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Node;
use App\Entity\Image;
#[ORM\Entity(repositoryClass: PageRepository::class)]
class Page extends Node
{
#[ORM\OneToOne]
private ?Image $image = null;
#[ORM\OneToOne]
private ?Image $banner = null;
/**
* @return Image|null
*/
public function getImage(): ?Image
{
return $this->image;
}
/**
* @param Image|null $image
* @return $this
*/
public function setImage(?Image $image): static
{
$this->image = $image;
return $this;
}
/**
* @return Image|null
*/
public function getBanner(): ?Image
{
return $this->banner;
}
/**
* @param Image|null $banner
* @return Page
*/
public function setBanner(?Image $banner): static
{
$this->banner = $banner;
return $this;
}
}