src/Entity/UserImageType.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserImageTypeRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassUserImageTypeRepository::class)]
  7. class UserImageType
  8. {
  9.     const BANK_RECEIPT 'BR';
  10.     const LOGO 'LG';
  11.     const DRIVING_LICENSE 'CF';
  12.     const PASSPORT 'PF';
  13.     const PASSPORT_FRONT 'PF'//@depricated
  14.     const PASSPORT_BACK 'PB'//@depricated
  15.     const CITIZEN_FRONT 'CF'//@depricated
  16.     const CITIZEN_BACK 'CB'//@Depricated
  17.     #[ORM\Id]
  18.     #[ORM\GeneratedValue]
  19.     #[ORM\Column(length2)]
  20.     private ?string $userImageTypeCode null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $name null;
  23.     #[ORM\OneToMany(mappedBy'userImageType'targetEntityUserImage::class)]
  24.     #@ORM\JoinColumn(name="user_image_type_code", referencedColumnName="user_image_type_code")
  25.     private $userImages;
  26.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  27.     private ?\DateTimeInterface $updated null;
  28.     public function getUserImageTypeCode(): ?string
  29.     {
  30.         return $this->userImageTypeCode;
  31.     }
  32.     public function setUserImageTypeCode(string $userImageTypeCode): self
  33.     {
  34.         $this->userImageTypeCode $userImageTypeCode;
  35.         return $this;
  36.     }
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): self
  42.     {
  43.         $this->name $name;
  44.         return $this;
  45.     }
  46.     public function getUpdated(): ?\DateTimeInterface
  47.     {
  48.         return $this->updated;
  49.     }
  50.     public function setUpdated(\DateTimeInterface $updated): self
  51.     {
  52.         $this->updated $updated;
  53.         return $this;
  54.     }
  55. }