src/Entity/VCardAddress.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VCardAddressRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassVCardAddressRepository::class)]
  6. class VCardAddress
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityVcards::class, inversedBy'addresses')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private $vcard;
  15.     #[ORM\Column(type'string'length255nullabletrue)]
  16.     private $label;
  17.     #[ORM\Column(type'string'length255)]
  18.     private $address;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $zipCode;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private $city;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getVcard(): ?Vcards
  28.     {
  29.         return $this->vcard;
  30.     }
  31.     public function setVcard(?Vcards $vcard): self
  32.     {
  33.         $this->vcard $vcard;
  34.         return $this;
  35.     }
  36.     public function getLabel(): ?string
  37.     {
  38.         return $this->label;
  39.     }
  40.     public function setLabel(?string $label): self
  41.     {
  42.         $this->label $label;
  43.         return $this;
  44.     }
  45.     public function getAddress(): ?string
  46.     {
  47.         return $this->address;
  48.     }
  49.     public function setAddress(string $address): self
  50.     {
  51.         $this->address $address;
  52.         return $this;
  53.     }
  54.     public function getZipCode(): ?string
  55.     {
  56.         return $this->zipCode;
  57.     }
  58.     public function setZipCode(?string $zipCode): self
  59.     {
  60.         $this->zipCode $zipCode;
  61.         return $this;
  62.     }
  63.     public function getCity(): ?string
  64.     {
  65.         return $this->city;
  66.     }
  67.     public function setCity(?string $city): self
  68.     {
  69.         $this->city $city;
  70.         return $this;
  71.     }
  72. }