src/Entity/VCardPhone.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VCardPhoneRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassVCardPhoneRepository::class)]
  6. class VCardPhone
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityVCards::class, inversedBy'phones')]
  13.     #[ORM\JoinColumn(nullablefalseonDelete'CASCADE')]
  14.     private ?VCards $vcard null;
  15.     #[ORM\Column(type'string'length80nullabletrue)]
  16.     private ?string $label null;
  17.     #[ORM\Column(type'string'length30)]
  18.     private string $number '';
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getVcard(): ?VCards
  24.     {
  25.         return $this->vcard;
  26.     }
  27.     public function setVcard(?VCards $vcard): self
  28.     {
  29.         $this->vcard $vcard;
  30.         return $this;
  31.     }
  32.     public function getLabel(): ?string
  33.     {
  34.         return $this->label;
  35.     }
  36.     public function setLabel(?string $label): self
  37.     {
  38.         $this->label $label;
  39.         return $this;
  40.     }
  41.     public function getNumber(): string
  42.     {
  43.         return $this->number;
  44.     }
  45.     public function setNumber(string $number): self
  46.     {
  47.         $this->number $number;
  48.         return $this;
  49.     }
  50. }