#64: wip add phonenumberfield to foodvendor

This commit is contained in:
lubiana 2024-12-19 01:11:09 +01:00
parent 2d3100b5c9
commit b65a4814f4
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
6 changed files with 75 additions and 3 deletions

View file

@ -16,6 +16,11 @@ class FoodVendor
#[ORM\Column(length: 50)]
private string|null $name = null;
#[ORM\Column(length: 50, nullable: true, options: [
'default' => "",
])]
private string|null $phone = null;
/**
* @var Collection<int, FoodOrder>
*/
@ -131,4 +136,15 @@ class FoodVendor
return $this;
}
public function getPhone(): string|null
{
return $this->phone;
}
public function setPhone(string|null $phone): static
{
$this->phone = $phone;
return $this;
}
}