src/Entity/ContactEbook.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\ContactEbookRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. #[ORM\Entity(repositoryClassContactEbookRepository::class)]
  8. class ContactEbook
  9. {
  10.     use Timestampable;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type'integer')]
  14.     private $id;
  15.     #[ORM\Column(type'string'length255)]
  16.     private $name;
  17.     #[ORM\Column(type'string'length255)]
  18.     private $phone;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $email;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getName(): ?string
  26.     {
  27.         return $this->name;
  28.     }
  29.     public function setName(string $name): self
  30.     {
  31.         $this->name $name;
  32.         return $this;
  33.     }
  34.     public function getPhone(): ?string
  35.     {
  36.         return $this->phone;
  37.     }
  38.     public function setPhone(string $phone): self
  39.     {
  40.         $this->phone $phone;
  41.         return $this;
  42.     }
  43.     public function getEmail(): ?string
  44.     {
  45.         return $this->email;
  46.     }
  47.     public function setEmail(string $email): self
  48.     {
  49.         $this->email $email;
  50.         return $this;
  51.     }
  52. }