<?phpnamespace MyBundle\Entity;use CoreBundle\Entity\User;use CoreBundle\Entity\Dealer;use DateTime;/** * Basket */class Basket{ const TYPE_ACCESSORY = 1; const TYPE_CASCO = 2; const TYPE_VEHICLE = 3; const STATUS_PENDING = 1; const STATUS_PAYED = 2; const STATUS_WITHOUT_PAYED_PENDING = 3; const STATUS_WITHOUT_PAYED = 4; const STATUS_NEW = 0; /** * @var integer */ private $id; /** * @var integer */ private $type; /** * @var integer */ private $count; /** * @var integer */ private $status; /** * @var string */ private $data; /** * @var DateTime */ private $created_at; /** * @var DateTime */ private $updated_at; /** * @var User */ private $user; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set type * * @param integer $type * * @return Basket */ public function setType($type) { $this->type = $type; return $this; } /** * Get type * * @return integer */ public function getType() { return $this->type; } /** * Set count * * @param integer $count * * @return Basket */ public function setCount($count) { $this->count = $count; return $this; } /** * Get count * * @return integer */ public function getCount() { return $this->count; } /** * Set status * * @param integer $status * * @return Basket */ public function setStatus($status) { $this->status = $status; return $this; } /** * Get status * * @return integer */ public function getStatus() { return $this->status; } /** * Set data * * @param string $data * * @return Basket */ public function setData($data) { $this->data = $data; return $this; } /** * Get data * * @return string */ public function getData() { return $this->data; } /** * Set createdAt * * @param DateTime $createdAt * * @return Basket */ public function setCreatedAt($createdAt) { $this->created_at = $createdAt; return $this; } /** * Get createdAt * * @return DateTime */ public function getCreatedAt() { return $this->created_at; } /** * Set updatedAt * * @param DateTime $updatedAt * * @return Basket */ public function setUpdatedAt($updatedAt) { $this->updated_at = $updatedAt; return $this; } /** * Get updatedAt * * @return DateTime */ public function getUpdatedAt() { return $this->updated_at; } /** * Set user * * @param User $user * * @return Basket */ public function setUser(User $user = null) { $this->user = $user; return $this; } /** * Get user * * @return User */ public function getUser() { return $this->user; } /** * @var Dealer */ private $dealer; /** * Set dealer * * @param Dealer $dealer * * @return Basket */ public function setDealer(Dealer $dealer = null) { $this->dealer = $dealer; return $this; } /** * Get dealer * * @return Dealer */ public function getDealer() { return $this->dealer; }}