<?php
namespace App\Entity;
use App\Repository\CatcharRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CatcharRepository::class)]
class Catchar implements EntityInterface
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private int $id = 0;
#[ORM\Column(type: 'integer')]
private int $cat = 0;
#[ORM\Column(type: 'integer')]
private int $char = 0;
#[ORM\Column(type: Types::SMALLINT)]
private int $prior = 0;
public function getId(): ?int
{
return $this->id;
}
public function getCatId(): ?int
{
return $this->cat;
}
public function setCatId(int $cat): self
{
$this->cat = $cat;
return $this;
}
public function getCharId(): ?int
{
return $this->char;
}
public function setCharId(int $char_id): self
{
$this->char = $char_id;
return $this;
}
public function getPrior(): ?int
{
return $this->prior;
}
public function setPrior(int $prior): self
{
$this->prior = $prior;
return $this;
}
}