src/Entity/Numbers.php line 9
<?php
namespace App\Entity;
use App\Repository\NumbersRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: NumbersRepository::class)]
class Numbers
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'numbers')]
private ?User $user = null;
#[ORM\Column(length: 255)]
private ?string $phone = null;
#[ORM\Column(nullable: true)]
private ?bool $active = null;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function isActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): self
{
$this->active = $active;
return $this;
}
}