src/Entity/Common/Russian/PassportDepartment.php line 16

  1. <?php
  2. namespace App\Entity\Common\Russian;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Class Department
  6.  * @package App\Entity\Common\Passport
  7.  *
  8.  * })
  9.  */
  10. #[ORM\Table(name'russian_passport_department')]
  11. #[ORM\Index(name'idx_code'columns: ['code'])]
  12. #[ORM\Entity(repositoryClass'App\Repository\Common\Russian\PassportDepartmentRepository')]
  13. class PassportDepartment
  14. {
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue(strategy'AUTO')]
  17.     #[ORM\Column(type'integer')]
  18.     private ?int $id;
  19.     #[ORM\Column(type'string')]
  20.     private string $code;
  21.     #[ORM\Column(type'string')]
  22.     private string $caption;
  23.     /**
  24.      * @return int|null
  25.      */
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     /**
  31.      * @param int|null $id
  32.      */
  33.     public function setId(?int $id): void
  34.     {
  35.         $this->id $id;
  36.     }
  37.     /**
  38.      * @return string
  39.      */
  40.     public function getCode(): string
  41.     {
  42.         return $this->code;
  43.     }
  44.     /**
  45.      * @param string $code
  46.      */
  47.     public function setCode(string $code): void
  48.     {
  49.         $this->code $code;
  50.     }
  51.     /**
  52.      * @return string
  53.      */
  54.     public function getCaption(): string
  55.     {
  56.         return $this->caption;
  57.     }
  58.     /**
  59.      * @param string $caption
  60.      */
  61.     public function setCaption(string $caption): void
  62.     {
  63.         $this->caption $caption;
  64.     }
  65. }