<?php
namespace App\Entity;
use App\Repository\DevisRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DevisRepository::class)
*/
class Devis
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $lastName;
/**
* @ORM\Column(type="string", length=255)
*/
private $firstName;
/**
* @ORM\Column(type="string", length=255)
*/
private $phone;
/**
* @ORM\Column(type="integer")
*/
private $countPeople;
/**
* @ORM\Column(type="decimal", precision=10, scale=0)
*/
private $budget;
/**
* @ORM\Column(type="string", length=255)
*/
private $lieu;
/**
* @ORM\Column(type="date")
*/
private $dateSouhaitee;
/**
* @ORM\Column(type="text")
*/
private $comment;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="devis")
*/
private $user;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createAt;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sameDay;
/**
* @ORM\ManyToOne(targetEntity=Activity::class, inversedBy="mainDevis")
*/
private $mainActivity;
/**
* @ORM\ManyToOne(targetEntity=Activity::class, inversedBy="secondaryDevis")
*/
private $secondaryActivity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $customMainActivity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $customSecondaryActivity;
public function getId(): ?int
{
return $this->id;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName( string $lastName ): self
{
$this->lastName = $lastName;
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 getBudget(): ?string
{
return $this->budget;
}
public function setBudget( string $budget ): self
{
$this->budget = $budget;
return $this;
}
public function getLieu(): ?string
{
return $this->lieu;
}
public function setLieu( string $lieu ): self
{
$this->lieu = $lieu;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment( string $comment ): self
{
$this->comment = $comment;
return $this;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*
* @return Devis
*/
public function setUser( $user ): Devis
{
$this->user = $user;
return $this;
}
/**
* @return mixed
*/
public function getCountPeople()
{
return $this->countPeople;
}
/**
* @param mixed $countPeople
*
* @return Devis
*/
public function setCountPeople( $countPeople ): Devis
{
$this->countPeople = $countPeople;
return $this;
}
/**
* @return mixed
*/
public function getDateSouhaitee()
{
return $this->dateSouhaitee;
}
/**
* @param mixed $dateSouhaitee
*
* @return Devis
*/
public function setDateSouhaitee( $dateSouhaitee ): Devis
{
$this->dateSouhaitee = $dateSouhaitee;
return $this;
}
/**
* @return mixed
*/
public function getCreateAt()
{
return $this->createAt;
}
/**
* @param mixed $createAt
*
* @return Devis
*/
public function setCreateAt( $createAt ): Devis
{
$this->createAt = $createAt;
return $this;
}
public function getSameDay(): ?bool
{
return $this->sameDay;
}
public function setSameDay( ?bool $sameDay ): self
{
$this->sameDay = $sameDay;
return $this;
}
public function getMainActivity(): ?Activity
{
return $this->mainActivity;
}
public function setMainActivity( ?Activity $mainActivity ): self
{
$this->mainActivity = $mainActivity;
return $this;
}
public function getSecondaryActivity()
{
return $this->secondaryActivity;
}
public function setSecondaryActivity( $secondaryActivity ): self
{
$this->secondaryActivity = $secondaryActivity;
return $this;
}
public function getCustomMainActivity(): ?string
{
return $this->customMainActivity;
}
public function setCustomMainActivity( ?string $customMainActivity ): self
{
$this->customMainActivity = $customMainActivity;
return $this;
}
public function getCustomSecondaryActivity(): ?string
{
return $this->customSecondaryActivity;
}
public function setCustomSecondaryActivity( ?string $customSecondaryActivity ): self
{
$this->customSecondaryActivity = $customSecondaryActivity;
return $this;
}
}