src/Entity/BecomePartner.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BecomePartnerRepository;
  4. use Cofondateur\SocleTechniqueBundle\Annotation\CrudField;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=BecomePartnerRepository::class)
  8.  */
  9. class BecomePartner
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      * @CrudField(index=true, label="Nom")
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      * @CrudField(index=true, label="Prénom")
  25.      */
  26.     private $firstname;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      * @CrudField(index=true, label="Téléphone")
  30.      */
  31.     private $phone;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      * @CrudField(index=true, label="Email")
  35.      */
  36.     private $email;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      * @CrudField(label="Code postal")
  40.      */
  41.     private $postalCode;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      * @CrudField(label="Ville")
  45.      */
  46.     private $city;
  47.     /**
  48.      * @ORM\Column(type="string", length=255, nullable=true)
  49.      * @CrudField(label="Adresse")
  50.      */
  51.     private $address;
  52.     /**
  53.      * @ORM\Column(type="string", length=255)
  54.      * @CrudField(tab="Votre société", label="Raison sociale")
  55.      */
  56.     private $socialReason;
  57.     /**
  58.      * @ORM\Column(type="string", length=255)
  59.      * @CrudField(tab="Votre société", label="SIRET")
  60.      */
  61.     private $siret;
  62.     /**
  63.      * @ORM\Column(type="string", length=255, nullable=true)
  64.      * @CrudField(tab="Votre société", label="Activité(s) pratiquée(s)")
  65.      */
  66.     private $activities;
  67.     /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      * @CrudField(tab="Votre société", label="Marque(s) représentée(s)")
  70.      */
  71.     private $brandRepresented;
  72.     /**
  73.      * @ORM\Column(type="date")
  74.      * @CrudField(tab="Votre société", label="Date d'immatriculation")
  75.      */
  76.     private $registrationDate;
  77.     /**
  78.      * @ORM\Column(type="date")
  79.      * @CrudField(label="Date", index=true)
  80.      */
  81.     private $date;
  82.     public function __construct() {
  83.         $this->date = new \DateTime();
  84.     }
  85.     public function __toString(): string
  86.     {
  87.         return $this->getId() ?? "N/A";
  88.     }
  89.     public function getId(): ?int
  90.     {
  91.         return $this->id;
  92.     }
  93.     public function getName(): ?string
  94.     {
  95.         return $this->name;
  96.     }
  97.     public function setName(string $name): self
  98.     {
  99.         $this->name $name;
  100.         return $this;
  101.     }
  102.     public function getFirstname(): ?string
  103.     {
  104.         return $this->firstname;
  105.     }
  106.     public function setFirstname(string $firstname): self
  107.     {
  108.         $this->firstname $firstname;
  109.         return $this;
  110.     }
  111.     public function getPhone(): ?string
  112.     {
  113.         return $this->phone;
  114.     }
  115.     public function setPhone(string $phone): self
  116.     {
  117.         $this->phone $phone;
  118.         return $this;
  119.     }
  120.     public function getEmail(): ?string
  121.     {
  122.         return $this->email;
  123.     }
  124.     public function setEmail(string $email): self
  125.     {
  126.         $this->email $email;
  127.         return $this;
  128.     }
  129.     public function getPostalCode(): ?string
  130.     {
  131.         return $this->postalCode;
  132.     }
  133.     public function setPostalCode(?string $postalCode): self
  134.     {
  135.         $this->postalCode $postalCode;
  136.         return $this;
  137.     }
  138.     public function getCity(): ?string
  139.     {
  140.         return $this->city;
  141.     }
  142.     public function setCity(?string $city): self
  143.     {
  144.         $this->city $city;
  145.         return $this;
  146.     }
  147.     public function getAddress(): ?string
  148.     {
  149.         return $this->address;
  150.     }
  151.     public function setAddress(?string $address): self
  152.     {
  153.         $this->address $address;
  154.         return $this;
  155.     }
  156.     public function getSocialReason(): ?string
  157.     {
  158.         return $this->socialReason;
  159.     }
  160.     public function setSocialReason(string $socialReason): self
  161.     {
  162.         $this->socialReason $socialReason;
  163.         return $this;
  164.     }
  165.     public function getSiret(): ?string
  166.     {
  167.         return $this->siret;
  168.     }
  169.     public function setSiret(string $siret): self
  170.     {
  171.         $this->siret $siret;
  172.         return $this;
  173.     }
  174.     public function getActivities(): ?string
  175.     {
  176.         return $this->activities;
  177.     }
  178.     public function setActivities(?string $activities): self
  179.     {
  180.         $this->activities $activities;
  181.         return $this;
  182.     }
  183.     public function getBrandRepresented(): ?string
  184.     {
  185.         return $this->brandRepresented;
  186.     }
  187.     public function setBrandRepresented(string $brandRepresented): self
  188.     {
  189.         $this->brandRepresented $brandRepresented;
  190.         return $this;
  191.     }
  192.     public function getRegistrationDate(): ?\DateTimeInterface
  193.     {
  194.         return $this->registrationDate;
  195.     }
  196.     public function setRegistrationDate(\DateTimeInterface $registrationDate): self
  197.     {
  198.         $this->registrationDate $registrationDate;
  199.         return $this;
  200.     }
  201.     public function getDate(): ?\DateTimeInterface
  202.     {
  203.         return $this->date;
  204.     }
  205.     public function setDate(\DateTimeInterface $date): self
  206.     {
  207.         $this->date $date;
  208.         return $this;
  209.     }
  210. }