src/Entity/Board.php line 11
<?php
namespace App\Entity;
use App\Repository\BoardRepository;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait;
#[ORM\Entity(repositoryClass: BoardRepository::class)]
class Board implements TranslatableInterface
{
const BOARD_TYPE_TUZ = 0;
const BOARD_TYPE_KHZ = 1;
use TranslatableTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 500)]
private ?string $image = null;
#[ORM\Column]
private ?int $type = null;
public function getId(): ?int
{
return $this->id;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
public function getType(): ?int
{
return $this->type;
}
public function setType(int $type): self
{
$this->type = $type;
return $this;
}
}