<?phpnamespace App\Application\Internit\LeadBundle\Entity;use Doctrine\ORM\Mapping as ORM;use App\Application\Internit\ContentBundle\Entity\Entity;/** * realStatePercent * * @ORM\Table(name="internit_lead_realstate_percent") * @ORM\Entity */class realStatePercent extends Entity{ /** * @ORM\ManyToOne(targetEntity="Product", inversedBy="realStatePercents", cascade={"persist"}) * */ protected $product; /** * @ORM\ManyToOne(targetEntity="App\Application\Internit\RealEstateBundle\Entity\RealEstate") * @ORM\JoinColumn(name="realEstate_id", referencedColumnName="id", onDelete="CASCADE") */ private $realEstate; /** * * @var string @ORM\Column(name="percent", type="decimal") */ private $percent = 0; /** * @var string * * @ORM\Column(name="turn", type="integer") */ protected $turn = 0; /** * @var string * * @ORM\Column(name="extraLeads", type="integer") */ protected $extraLeads = 0; /** * * @return string */ public function getPosition() { return $this->position; } /** * * @return self */ public function setPosition($position) { $this->position = $position; return $this; } /** * Get the value of realEstate */ public function getRealEstate() { return $this->realEstate; } /** * Set the value of realEstate * * @return self */ public function setRealEstate($realEstate) { $this->realEstate = $realEstate; return $this; } public function __toString(){ return $this->user->getFirstName(); } /** * Get the value of turn * * @return string */ public function getTurn() { return $this->turn; } /** * Set the value of turn * * * @return self */ public function setTurn($turn) { $this->turn = $turn; return $this; } /** * Get porcentagem de leads para a imobiliária * * @return string */ public function getPercent() { return $this->percent; } /** * Set porcentagem de leads para a imobiliária * * @param string $percent porcentagem de leads para a imobiliária * * @return self */ public function setPercent($percent) { $this->percent = $percent; return $this; } /** * Get the value of product */ public function getProduct() { return $this->product; } /** * Set the value of product * * @return self */ public function setProduct($product) { $this->product = $product; return $this; } public function getExtraLeads() { return $this->extraLeads; } public function setExtraLeads($extraLeads): void { $this->extraLeads = $extraLeads; }}