<?php
declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
#[ORM\Entity]
#[ORM\Table(name: 'jm_consultant_impressum')]
class ConsultantImpressum
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
protected ?int $id = null;
#[ORM\OneToOne(inversedBy: 'impressum', targetEntity: User::class)]
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: true)]
private ?User $user = null;
#[ORM\Column(type: 'string', length: 200)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $name = '';
#[ORM\Column(type: 'string', length: 200)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $street = '';
#[ORM\Column(type: 'string', length: 20)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $zipCode = '';
#[ORM\Column(type: 'string', length: 50)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $city = '';
#[ORM\Column(type: 'string', length: 100)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $email = '';
#[ORM\Column(type: 'string', length: 100)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $phoneNumber = '';
#[ORM\Column(type: 'string', length: 200)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $register = '';
#[ORM\Column(type: 'string', length: 20)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $vatId = '';
#[ORM\Column(type: 'string', length: 50)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $registerNumber = '';
#[ORM\Column(type: 'string', length: 50)]
#[Serializer\Groups(['consultant', 'impressum', 'profile'])]
private ?string $legalForm = '';
// create the geters and the setter
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getStreet(): ?string
{
return $this->street;
}
public function setStreet(?string $street): self
{
$this->street = $street;
return $this;
}
public function getZipCode(): ?string
{
return $this->zipCode;
}
public function setZipCode(?string $zipCode): self
{
$this->zipCode = $zipCode;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
$this->city = $city;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getPhoneNumber(): ?string
{
return $this->phoneNumber;
}
public function setPhoneNumber(?string $phoneNumber): self
{
$this->phoneNumber = $phoneNumber;
return $this;
}
public function getRegister(): ?string
{
return $this->register;
}
public function setRegister(?string $register): self
{
$this->register = $register;
return $this;
}
public function getVatId(): ?string
{
return $this->vatId;
}
public function setVatId(?string $vatId): self
{
$this->vatId = $vatId;
return $this;
}
public function getRegisterNumber(): ?string
{
return $this->registerNumber;
}
public function setRegisterNumber(?string $registerNumber): self
{
$this->registerNumber = $registerNumber;
return $this;
}
public function getLegalForm(): ?string
{
return $this->legalForm;
}
public function setLegalForm(?string $legalForm): self
{
$this->legalForm = $legalForm;
return $this;
}
}