src/CoreBundle/Entity/Vehicles/Rent.php line 10

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity\Vehicles;
  3. use Application\Sonata\MediaBundle\Entity\Media;
  4. /**
  5.  * Rent
  6.  */
  7. class Rent
  8. {
  9.     /**
  10.      * @var int
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var int
  15.      */
  16.     private $state;
  17.     /**
  18.      * @var int|null
  19.      */
  20.     private $price;
  21.     /**
  22.      * @var int|null
  23.      */
  24.     private $action_price;
  25.     /**
  26.      * @var string|null
  27.      */
  28.     private $color;
  29.     /**
  30.      * @var Media
  31.      */
  32.     private $preview;
  33.     /**
  34.      * @var Variation
  35.      */
  36.     private $variation;
  37.     /**
  38.      * @var ConfiguratorColor
  39.      */
  40.     private $color_item;
  41.     /**
  42.      * Get id.
  43.      *
  44.      * @return int
  45.      */
  46.     public function getId()
  47.     {
  48.         return $this->id;
  49.     }
  50.     /**
  51.      * Set state.
  52.      *
  53.      * @param int $state
  54.      *
  55.      * @return Rent
  56.      */
  57.     public function setState($state)
  58.     {
  59.         $this->state $state;
  60.         return $this;
  61.     }
  62.     /**
  63.      * Get state.
  64.      *
  65.      * @return int
  66.      */
  67.     public function getState():?int
  68.     {
  69.         return $this->state;
  70.     }
  71.     /**
  72.      * Set price.
  73.      *
  74.      * @param int|null $price
  75.      *
  76.      * @return Rent
  77.      */
  78.     public function setPrice($price null)
  79.     {
  80.         $this->price $price;
  81.         return $this;
  82.     }
  83.     /**
  84.      * Get price.
  85.      *
  86.      * @return int|null
  87.      */
  88.     public function getPrice()
  89.     {
  90.         return $this->price;
  91.     }
  92.     /**
  93.      * Set actionPrice.
  94.      *
  95.      * @param int|null $actionPrice
  96.      *
  97.      * @return Rent
  98.      */
  99.     public function setActionPrice($actionPrice null)
  100.     {
  101.         $this->action_price $actionPrice;
  102.         return $this;
  103.     }
  104.     /**
  105.      * Get actionPrice.
  106.      *
  107.      * @return int|null
  108.      */
  109.     public function getActionPrice()
  110.     {
  111.         return $this->action_price;
  112.     }
  113.     /**
  114.      * Set color.
  115.      *
  116.      * @param string|null $color
  117.      *
  118.      * @return Rent
  119.      */
  120.     public function setColor($color null)
  121.     {
  122.         $this->color $color;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get color.
  127.      *
  128.      * @return string|null
  129.      */
  130.     public function getColor()
  131.     {
  132.         return $this->color;
  133.     }
  134.     /**
  135.      * Set preview.
  136.      *
  137.      * @param Media|null $preview
  138.      *
  139.      * @return Rent
  140.      */
  141.     public function setPreview(Media $preview null)
  142.     {
  143.         $this->preview $preview;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get preview.
  148.      *
  149.      * @return Media|null
  150.      */
  151.     public function getPreview()
  152.     {
  153.         return $this->preview;
  154.     }
  155.     /**
  156.      * Set variation.
  157.      *
  158.      * @param Variation|null $variation
  159.      *
  160.      * @return Rent
  161.      */
  162.     public function setVariation(Variation $variation null)
  163.     {
  164.         $this->variation $variation;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get variation.
  169.      *
  170.      * @return Variation|null
  171.      */
  172.     public function getVariation()
  173.     {
  174.         return $this->variation;
  175.     }
  176.     /**
  177.      * Set colorItem.
  178.      *
  179.      * @param ConfiguratorColor|null $colorItem
  180.      *
  181.      * @return Rent
  182.      */
  183.     public function setColorItem(ConfiguratorColor $colorItem null)
  184.     {
  185.         $this->color_item $colorItem;
  186.         return $this;
  187.     }
  188.     /**
  189.      * Get colorItem.
  190.      *
  191.      * @return ConfiguratorColor|null
  192.      */
  193.     public function getColorItem()
  194.     {
  195.         return $this->color_item;
  196.     }
  197.     /**
  198.      * @var int
  199.      */
  200.     private $position;
  201.     /**
  202.      * Set position.
  203.      *
  204.      * @param int $position
  205.      *
  206.      * @return Rent
  207.      */
  208.     public function setPosition($position)
  209.     {
  210.         $this->position $position;
  211.         return $this;
  212.     }
  213.     /**
  214.      * Get position.
  215.      *
  216.      * @return int
  217.      */
  218.     public function getPosition()
  219.     {
  220.         return $this->position;
  221.     }
  222. }