<?php
namespace App\Entity;
use App\Repository\PageBlockRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageBlockRepository::class)]
class PageBlock implements EntityInterface
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Page::class, inversedBy: 'blocks')]
private $page;
#[ORM\Column(type: 'string', length: 255)]
private $intname = '';
#[ORM\Column(type: 'string', length: 255)]
private $name = '';
#[ORM\Column(type: 'text')]
private $cont = '';
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 getIntname(): ?string
{
return $this->intname;
}
public function setIntname(string $intname): self
{
$this->intname = $intname;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getCont(): ?string
{
return $this->cont;
}
public function setCont(string $cont): self
{
$this->cont = $cont;
return $this;
}
}