src/Entity/ConsultantImpressum.php line 12

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use JMS\Serializer\Annotation as Serializer;
  6. #[ORM\Entity]
  7. #[ORM\Table(name'jm_consultant_impressum')]
  8. class ConsultantImpressum
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     protected ?int $id null;
  14.     #[ORM\OneToOne(inversedBy'impressum'targetEntityUser::class)]
  15.     #[ORM\JoinColumn(name'user_id'referencedColumnName'id'nullabletrue)]
  16.     private ?User $user null;
  17.     #[ORM\Column(type'string'length200)]
  18.     #[Serializer\Groups(['consultant''impressum''profile'])]
  19.     private ?string $name '';
  20.     #[ORM\Column(type'string'length200)]
  21.     #[Serializer\Groups(['consultant''impressum''profile'])]
  22.     private ?string $street '';
  23.     #[ORM\Column(type'string'length20)]
  24.     #[Serializer\Groups(['consultant''impressum''profile'])]
  25.     private ?string $zipCode '';
  26.     #[ORM\Column(type'string'length50)]
  27.     #[Serializer\Groups(['consultant''impressum''profile'])]
  28.     private ?string $city '';
  29.     #[ORM\Column(type'string'length100)]
  30.     #[Serializer\Groups(['consultant''impressum''profile'])]
  31.     private ?string $email '';
  32.     #[ORM\Column(type'string'length100)]
  33.     #[Serializer\Groups(['consultant''impressum''profile'])]
  34.     private ?string $phoneNumber '';
  35.     #[ORM\Column(type'string'length200)]
  36.     #[Serializer\Groups(['consultant''impressum''profile'])]
  37.     private ?string $register '';
  38.     #[ORM\Column(type'string'length20)]
  39.     #[Serializer\Groups(['consultant''impressum''profile'])]
  40.     private ?string $vatId '';
  41.     #[ORM\Column(type'string'length50)]
  42.     #[Serializer\Groups(['consultant''impressum''profile'])]
  43.     private ?string $registerNumber '';
  44.     #[ORM\Column(type'string'length50)]
  45.     #[Serializer\Groups(['consultant''impressum''profile'])]
  46.     private ?string $legalForm '';
  47.     // create the geters and the setter
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getUser(): ?User
  53.     {
  54.         return $this->user;
  55.     }
  56.     public function setUser(?User $user): self
  57.     {
  58.         $this->user $user;
  59.         return $this;
  60.     }
  61.     public function getName(): ?string
  62.     {
  63.         return $this->name;
  64.     }
  65.     public function setName(?string $name): self
  66.     {
  67.         $this->name $name;
  68.         return $this;
  69.     }
  70.     public function getStreet(): ?string
  71.     {
  72.         return $this->street;
  73.     }
  74.     public function setStreet(?string $street): self
  75.     {
  76.         $this->street $street;
  77.         return $this;
  78.     }
  79.     public function getZipCode(): ?string
  80.     {
  81.         return $this->zipCode;
  82.     }
  83.     public function setZipCode(?string $zipCode): self
  84.     {
  85.         $this->zipCode $zipCode;
  86.         return $this;
  87.     }
  88.     public function getCity(): ?string
  89.     {
  90.         return $this->city;
  91.     }
  92.     public function setCity(?string $city): self
  93.     {
  94.         $this->city $city;
  95.         return $this;
  96.     }
  97.     public function getEmail(): ?string
  98.     {
  99.         return $this->email;
  100.     }
  101.     public function setEmail(?string $email): self
  102.     {
  103.         $this->email $email;
  104.         return $this;
  105.     }
  106.     public function getPhoneNumber(): ?string
  107.     {
  108.         return $this->phoneNumber;
  109.     }
  110.     public function setPhoneNumber(?string $phoneNumber): self
  111.     {
  112.         $this->phoneNumber $phoneNumber;
  113.         return $this;
  114.     }
  115.     public function getRegister(): ?string
  116.     {
  117.         return $this->register;
  118.     }
  119.     public function setRegister(?string $register): self
  120.     {
  121.         $this->register $register;
  122.         return $this;
  123.     }
  124.     public function getVatId(): ?string
  125.     {
  126.         return $this->vatId;
  127.     }
  128.     public function setVatId(?string $vatId): self
  129.     {
  130.         $this->vatId $vatId;
  131.         return $this;
  132.     }
  133.     public function getRegisterNumber(): ?string
  134.     {
  135.         return $this->registerNumber;
  136.     }
  137.     public function setRegisterNumber(?string $registerNumber): self
  138.     {
  139.         $this->registerNumber $registerNumber;
  140.         return $this;
  141.     }
  142.     public function getLegalForm(): ?string
  143.     {
  144.         return $this->legalForm;
  145.     }
  146.     public function setLegalForm(?string $legalForm): self
  147.     {
  148.         $this->legalForm $legalForm;
  149.         return $this;
  150.     }
  151. }