<?php
namespace App\Entity;
use App\Repository\BecomePartnerRepository;
use Cofondateur\SocleTechniqueBundle\Annotation\CrudField;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BecomePartnerRepository::class)
*/
class BecomePartner
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(index=true, label="Nom")
*/
private $name;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(index=true, label="Prénom")
*/
private $firstname;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(index=true, label="Téléphone")
*/
private $phone;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(index=true, label="Email")
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @CrudField(label="Code postal")
*/
private $postalCode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @CrudField(label="Ville")
*/
private $city;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @CrudField(label="Adresse")
*/
private $address;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(tab="Votre société", label="Raison sociale")
*/
private $socialReason;
/**
* @ORM\Column(type="string", length=255)
* @CrudField(tab="Votre société", label="SIRET")
*/
private $siret;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @CrudField(tab="Votre société", label="Activité(s) pratiquée(s)")
*/
private $activities;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @CrudField(tab="Votre société", label="Marque(s) représentée(s)")
*/
private $brandRepresented;
/**
* @ORM\Column(type="date")
* @CrudField(tab="Votre société", label="Date d'immatriculation")
*/
private $registrationDate;
/**
* @ORM\Column(type="date")
* @CrudField(label="Date", index=true)
*/
private $date;
public function __construct() {
$this->date = new \DateTime();
}
public function __toString(): string
{
return $this->getId() ?? "N/A";
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getPostalCode(): ?string
{
return $this->postalCode;
}
public function setPostalCode(?string $postalCode): self
{
$this->postalCode = $postalCode;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
$this->city = $city;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getSocialReason(): ?string
{
return $this->socialReason;
}
public function setSocialReason(string $socialReason): self
{
$this->socialReason = $socialReason;
return $this;
}
public function getSiret(): ?string
{
return $this->siret;
}
public function setSiret(string $siret): self
{
$this->siret = $siret;
return $this;
}
public function getActivities(): ?string
{
return $this->activities;
}
public function setActivities(?string $activities): self
{
$this->activities = $activities;
return $this;
}
public function getBrandRepresented(): ?string
{
return $this->brandRepresented;
}
public function setBrandRepresented(string $brandRepresented): self
{
$this->brandRepresented = $brandRepresented;
return $this;
}
public function getRegistrationDate(): ?\DateTimeInterface
{
return $this->registrationDate;
}
public function setRegistrationDate(\DateTimeInterface $registrationDate): self
{
$this->registrationDate = $registrationDate;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
}