<?php
namespace AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PriceThreshold
*/
#[ORM\Table(name: 'price_threshold')]
#[ORM\Entity]
class PriceThreshold extends BaseEntity
{
/**
* @var integer
*/
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
protected $id;
/**
* @var integer
*/
#[ORM\Column(name: 'start', type: 'integer')]
protected $start;
/**
* @var integer
*/
#[ORM\Column(name: 'end', type: 'integer')]
protected $end;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @param int $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return int
*/
public function getStart()
{
return $this->start;
}
/**
* @param int $start
*/
public function setStart($start)
{
$this->start = $start;
}
/**
* @return int
*/
public function getEnd()
{
return $this->end;
}
/**
* @param int $end
*/
public function setEnd($end)
{
$this->end = $end;
}
public function getStartEnd() {
return $this->start.' - '.$this->end;
}
public function __toString()
{
return $this->getId() ? (string) $this->getId() : 'n\a';
}
}