src/Entity/RecommendContact.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RecommendContactRepository;
  4. use Cofondateur\SocleTechniqueBundle\Annotation\CrudField;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=RecommendContactRepository::class)
  8.  */
  9. class RecommendContact
  10. {
  11.         
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      * @CrudField(label="Code partenaire")
  21.      */
  22.     private $partnerCode;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      * @CrudField(label="Raison sociale")
  26.      */
  27.     private $socialReason;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      * @CrudField(tab="Informations du client", index=true, label="Nom")
  31.      */
  32.     private $name;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      * @CrudField(tab="Informations du client", index=true, label="Prénom")
  36.      */
  37.     private $firstname;
  38.     /**
  39.      * @ORM\Column(type="string", length=255)
  40.      * @CrudField(tab="Informations du client", label="Téléphone")
  41.      */
  42.     private $phone;
  43.     /**
  44.      * @ORM\Column(type="string", length=255)
  45.      * @CrudField(tab="Informations du client", label="Email")
  46.      */
  47.     private $email;
  48.     /**
  49.      * @ORM\Column(type="string", length=255, nullable=true)
  50.      * @CrudField(tab="Informations du client", label="Code postal")
  51.      */
  52.     private $postalCode;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      * @CrudField(tab="Informations du client", label="Ville")
  56.      */
  57.     private $city;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      * @CrudField(tab="Informations du client", label="Adresse")
  61.      */
  62.     private $address;
  63.     /**
  64.      * @ORM\Column(type="date")
  65.      * @CrudField(index=true, label="Date")
  66.      */
  67.     private $date;
  68.     public function __construct() {
  69.         $this->date = new \DateTime();
  70.     }
  71.     public function __toString(): string
  72.     {
  73.         return $this->getId() ?? "N/A";
  74.     }
  75.     public function getId(): ?int
  76.     {
  77.         return $this->id;
  78.     }
  79.     public function getPartnerCode(): ?string
  80.     {
  81.         return $this->partnerCode;
  82.     }
  83.     public function setPartnerCode(?string $partnerCode): self
  84.     {
  85.         $this->partnerCode $partnerCode;
  86.         return $this;
  87.     }
  88.     public function getSocialReason(): ?string
  89.     {
  90.         return $this->socialReason;
  91.     }
  92.     public function setSocialReason(string $socialReason): self
  93.     {
  94.         $this->socialReason $socialReason;
  95.         return $this;
  96.     }
  97.     public function getName(): ?string
  98.     {
  99.         return $this->name;
  100.     }
  101.     public function setName(string $name): self
  102.     {
  103.         $this->name $name;
  104.         return $this;
  105.     }
  106.     public function getFirstname(): ?string
  107.     {
  108.         return $this->firstname;
  109.     }
  110.     public function setFirstname(?string $firstname): self
  111.     {
  112.         $this->firstname $firstname;
  113.         return $this;
  114.     }
  115.     public function getPhone(): ?string
  116.     {
  117.         return $this->phone;
  118.     }
  119.     public function setPhone(string $phone): self
  120.     {
  121.         $this->phone $phone;
  122.         return $this;
  123.     }
  124.     public function getEmail(): ?string
  125.     {
  126.         return $this->email;
  127.     }
  128.     public function setEmail(string $email): self
  129.     {
  130.         $this->email $email;
  131.         return $this;
  132.     }
  133.     public function getPostalCode(): ?string
  134.     {
  135.         return $this->postalCode;
  136.     }
  137.     public function setPostalCode(?string $postalCode): self
  138.     {
  139.         $this->postalCode $postalCode;
  140.         return $this;
  141.     }
  142.     public function getCity(): ?string
  143.     {
  144.         return $this->city;
  145.     }
  146.     public function setCity(?string $city): self
  147.     {
  148.         $this->city $city;
  149.         return $this;
  150.     }
  151.     public function getAddress(): ?string
  152.     {
  153.         return $this->address;
  154.     }
  155.     public function setAddress(string $address): self
  156.     {
  157.         $this->address $address;
  158.         return $this;
  159.     }
  160.     public function getDate(): ?\DateTimeInterface
  161.     {
  162.         return $this->date;
  163.     }
  164.     public function setDate(\DateTimeInterface $date): self
  165.     {
  166.         $this->date $date;
  167.         return $this;
  168.     }
  169. }