<?phpnamespace App\Entity;use App\Repository\BusinessSubscriptionRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;use Symfony\Component\Validator\Constraints as Assert;#[ORM\Entity(repositoryClass: BusinessSubscriptionRepository::class)]class BusinessSubscription{ use TimestampableEntity; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 100)] #[Assert\Regex(pattern: "/^[a-zA-Z0-9_\s-]{2,}$/")] #[Assert\NotNull] private ?string $name = null; #[ORM\Column(length: 150)] #[Assert\Email] #[Assert\NotNull] private ?string $email = null; #[ORM\Column(length: 100)] #[Assert\Regex(pattern: "/^\+?\d{1,3}?[-. ]?\d{7,10}$/")] #[Assert\NotNull] private ?string $phone = null; #[ORM\Column(length: 255)] private ?string $address = null; #[ORM\ManyToOne] #[ORM\JoinColumn(nullable: false)] #[Assert\NotNull] private ?City $city = null; #[ORM\ManyToOne] private ?User $user = null; #[ORM\Column(nullable: true)] private ?bool $approved = null; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): static { $this->name = $name; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): static { $this->email = $email; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(?string $phone): static { $this->phone = $phone; return $this; } public function getAddress(): ?string { return $this->address; } public function setAddress(string $address): static { $this->address = $address; return $this; } public function getCity(): ?City { return $this->city; } public function setCity(?City $city): static { $this->city = $city; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): static { $this->user = $user; return $this; } public function isApproved(): ?bool { return $this->approved; } public function setApproved(?bool $approved): static { $this->approved = $approved; return $this; }}