<?php
namespace App\Entity;
use App\Repository\VCardAddressRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VCardAddressRepository::class)]
class VCardAddress
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Vcards::class, inversedBy: 'addresses')]
#[ORM\JoinColumn(nullable: false)]
private $vcard;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $label;
#[ORM\Column(type: 'string', length: 255)]
private $address;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $zipCode;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $city;
public function getId(): ?int
{
return $this->id;
}
public function getVcard(): ?Vcards
{
return $this->vcard;
}
public function setVcard(?Vcards $vcard): self
{
$this->vcard = $vcard;
return $this;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(?string $label): self
{
$this->label = $label;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): self
{
$this->address = $address;
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;
}
}