src/Entity/Catchar.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CatcharRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCatcharRepository::class)]
  7. class Catchar implements EntityInterface
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private int $id 0;
  13.     #[ORM\Column(type'integer')]
  14.     private int $cat 0;
  15.     #[ORM\Column(type'integer')]
  16.     private int $char 0;
  17.     #[ORM\Column(typeTypes::SMALLINT)]
  18.     private int $prior 0;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getCatId(): ?int
  24.     {
  25.         return $this->cat;
  26.     }
  27.     public function setCatId(int $cat): self
  28.     {
  29.         $this->cat $cat;
  30.         return $this;
  31.     }
  32.     public function getCharId(): ?int
  33.     {
  34.         return $this->char;
  35.     }
  36.     public function setCharId(int $char_id): self
  37.     {
  38.         $this->char $char_id;
  39.         return $this;
  40.     }
  41.     public function getPrior(): ?int
  42.     {
  43.         return $this->prior;
  44.     }
  45.     public function setPrior(int $prior): self
  46.     {
  47.         $this->prior $prior;
  48.         return $this;
  49.     }
  50. }