<?php
namespace App\Entity;
use App\Repository\VCardPhoneRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VCardPhoneRepository::class)]
class VCardPhone
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: VCards::class, inversedBy: 'phones')]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
private ?VCards $vcard = null;
#[ORM\Column(type: 'string', length: 80, nullable: true)]
private ?string $label = null;
#[ORM\Column(type: 'string', length: 30)]
private string $number = '';
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 getNumber(): string
{
return $this->number;
}
public function setNumber(string $number): self
{
$this->number = $number;
return $this;
}
}