src/Entity/Common/Russian/PassportDepartment.php line 16
<?php
namespace App\Entity\Common\Russian;
use Doctrine\ORM\Mapping as ORM;
/**
* Class Department
* @package App\Entity\Common\Passport
*
* })
*/
#[ORM\Table(name: 'russian_passport_department')]
#[ORM\Index(name: 'idx_code', columns: ['code'])]
#[ORM\Entity(repositoryClass: 'App\Repository\Common\Russian\PassportDepartmentRepository')]
class PassportDepartment
{
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\Column(type: 'string')]
private string $code;
#[ORM\Column(type: 'string')]
private string $caption;
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getCode(): string
{
return $this->code;
}
/**
* @param string $code
*/
public function setCode(string $code): void
{
$this->code = $code;
}
/**
* @return string
*/
public function getCaption(): string
{
return $this->caption;
}
/**
* @param string $caption
*/
public function setCaption(string $caption): void
{
$this->caption = $caption;
}
}