<?php
namespace App\Entity;
use App\Repository\PhoneRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PhoneRepository::class)
* @ORM\Table(name="app_phone")
*/
class Phone
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private ?int $id;
/**
* @ORM\Column(type="datetime_immutable", nullable=true, options={"default": "CURRENT_TIMESTAMP"})
*/
private $createAt;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $phone;
public function getId(): ?int
{
return $this->id;
}
public function __toString(): string
{
return $this->getPhone();
}
public function getCreateAt(): ?\DateTimeImmutable
{
return $this->createAt;
}
public function setCreateAt(\DateTimeInterface $createAt): self
{
$this->createAt = $createAt;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
}