<?php
namespace App\Entity;
use App\Repository\PagePhotoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PagePhotoRepository::class)]
class PagePhoto implements EntityInterface
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Page::class, inversedBy: 'photos')]
private $page;
#[ORM\Column(type: 'string', length: 255)]
private $name = '';
#[ORM\Column(type: 'smallint')]
private $prior = 0;
#[ORM\Column(type: 'boolean')]
private $visible = 1;
public function getId(): ?int
{
return $this->id;
}
public function getPage(): ?Page
{
return $this->page;
}
public function setPage(?Page $page): self
{
$this->page = $page;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getPrior(): ?int
{
return $this->prior;
}
public function setPrior(int $prior): self
{
$this->prior = $prior;
return $this;
}
public function isVisible(): ?bool
{
return $this->visible;
}
public function setVisible(bool $visible): self
{
$this->visible = $visible;
return $this;
}
}