src/MyBundle/Entity/Basket.php line 12

Open in your IDE?
  1. <?php
  2. namespace MyBundle\Entity;
  3. use CoreBundle\Entity\User;
  4. use CoreBundle\Entity\Dealer;
  5. use DateTime;
  6. /**
  7.  * Basket
  8.  */
  9. class Basket
  10. {
  11.     const TYPE_ACCESSORY 1;
  12.     const TYPE_CASCO 2;
  13.     const TYPE_VEHICLE 3;
  14.     const STATUS_PENDING 1;
  15.     const STATUS_PAYED 2;
  16.     const STATUS_WITHOUT_PAYED_PENDING  3;
  17.     const STATUS_WITHOUT_PAYED 4;
  18.     const STATUS_NEW 0;
  19.     /**
  20.      * @var integer
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var integer
  25.      */
  26.     private $type;
  27.     /**
  28.      * @var integer
  29.      */
  30.     private $count;
  31.     /**
  32.      * @var integer
  33.      */
  34.     private $status;
  35.     /**
  36.      * @var string
  37.      */
  38.     private $data;
  39.     /**
  40.      * @var DateTime
  41.      */
  42.     private $created_at;
  43.     /**
  44.      * @var DateTime
  45.      */
  46.     private $updated_at;
  47.     /**
  48.      * @var User
  49.      */
  50.     private $user;
  51.     /**
  52.      * Get id
  53.      *
  54.      * @return integer
  55.      */
  56.     public function getId()
  57.     {
  58.         return $this->id;
  59.     }
  60.     /**
  61.      * Set type
  62.      *
  63.      * @param integer $type
  64.      *
  65.      * @return Basket
  66.      */
  67.     public function setType($type)
  68.     {
  69.         $this->type $type;
  70.         return $this;
  71.     }
  72.     /**
  73.      * Get type
  74.      *
  75.      * @return integer
  76.      */
  77.     public function getType()
  78.     {
  79.         return $this->type;
  80.     }
  81.     /**
  82.      * Set count
  83.      *
  84.      * @param integer $count
  85.      *
  86.      * @return Basket
  87.      */
  88.     public function setCount($count)
  89.     {
  90.         $this->count $count;
  91.         return $this;
  92.     }
  93.     /**
  94.      * Get count
  95.      *
  96.      * @return integer
  97.      */
  98.     public function getCount()
  99.     {
  100.         return $this->count;
  101.     }
  102.     /**
  103.      * Set status
  104.      *
  105.      * @param integer $status
  106.      *
  107.      * @return Basket
  108.      */
  109.     public function setStatus($status)
  110.     {
  111.         $this->status $status;
  112.         return $this;
  113.     }
  114.     /**
  115.      * Get status
  116.      *
  117.      * @return integer
  118.      */
  119.     public function getStatus()
  120.     {
  121.         return $this->status;
  122.     }
  123.     /**
  124.      * Set data
  125.      *
  126.      * @param string $data
  127.      *
  128.      * @return Basket
  129.      */
  130.     public function setData($data)
  131.     {
  132.         $this->data $data;
  133.         return $this;
  134.     }
  135.     /**
  136.      * Get data
  137.      *
  138.      * @return string
  139.      */
  140.     public function getData()
  141.     {
  142.         return $this->data;
  143.     }
  144.     /**
  145.      * Set createdAt
  146.      *
  147.      * @param DateTime $createdAt
  148.      *
  149.      * @return Basket
  150.      */
  151.     public function setCreatedAt($createdAt)
  152.     {
  153.         $this->created_at $createdAt;
  154.         return $this;
  155.     }
  156.     /**
  157.      * Get createdAt
  158.      *
  159.      * @return DateTime
  160.      */
  161.     public function getCreatedAt()
  162.     {
  163.         return $this->created_at;
  164.     }
  165.     /**
  166.      * Set updatedAt
  167.      *
  168.      * @param DateTime $updatedAt
  169.      *
  170.      * @return Basket
  171.      */
  172.     public function setUpdatedAt($updatedAt)
  173.     {
  174.         $this->updated_at $updatedAt;
  175.         return $this;
  176.     }
  177.     /**
  178.      * Get updatedAt
  179.      *
  180.      * @return DateTime
  181.      */
  182.     public function getUpdatedAt()
  183.     {
  184.         return $this->updated_at;
  185.     }
  186.     /**
  187.      * Set user
  188.      *
  189.      * @param User $user
  190.      *
  191.      * @return Basket
  192.      */
  193.     public function setUser(User $user null)
  194.     {
  195.         $this->user $user;
  196.         return $this;
  197.     }
  198.     /**
  199.      * Get user
  200.      *
  201.      * @return User
  202.      */
  203.     public function getUser()
  204.     {
  205.         return $this->user;
  206.     }
  207.     /**
  208.      * @var Dealer
  209.      */
  210.     private $dealer;
  211.     /**
  212.      * Set dealer
  213.      *
  214.      * @param Dealer $dealer
  215.      *
  216.      * @return Basket
  217.      */
  218.     public function setDealer(Dealer $dealer null)
  219.     {
  220.         $this->dealer $dealer;
  221.         return $this;
  222.     }
  223.     /**
  224.      * Get dealer
  225.      *
  226.      * @return Dealer
  227.      */
  228.     public function getDealer()
  229.     {
  230.         return $this->dealer;
  231.     }
  232. }