<?phpnamespace CoreBundle\Entity\Vehicles;use Application\Sonata\MediaBundle\Entity\Media;/** * Rent */class Rent{ /** * @var int */ private $id; /** * @var int */ private $state; /** * @var int|null */ private $price; /** * @var int|null */ private $action_price; /** * @var string|null */ private $color; /** * @var Media */ private $preview; /** * @var Variation */ private $variation; /** * @var ConfiguratorColor */ private $color_item; /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set state. * * @param int $state * * @return Rent */ public function setState($state) { $this->state = $state; return $this; } /** * Get state. * * @return int */ public function getState():?int { return $this->state; } /** * Set price. * * @param int|null $price * * @return Rent */ public function setPrice($price = null) { $this->price = $price; return $this; } /** * Get price. * * @return int|null */ public function getPrice() { return $this->price; } /** * Set actionPrice. * * @param int|null $actionPrice * * @return Rent */ public function setActionPrice($actionPrice = null) { $this->action_price = $actionPrice; return $this; } /** * Get actionPrice. * * @return int|null */ public function getActionPrice() { return $this->action_price; } /** * Set color. * * @param string|null $color * * @return Rent */ public function setColor($color = null) { $this->color = $color; return $this; } /** * Get color. * * @return string|null */ public function getColor() { return $this->color; } /** * Set preview. * * @param Media|null $preview * * @return Rent */ public function setPreview(Media $preview = null) { $this->preview = $preview; return $this; } /** * Get preview. * * @return Media|null */ public function getPreview() { return $this->preview; } /** * Set variation. * * @param Variation|null $variation * * @return Rent */ public function setVariation(Variation $variation = null) { $this->variation = $variation; return $this; } /** * Get variation. * * @return Variation|null */ public function getVariation() { return $this->variation; } /** * Set colorItem. * * @param ConfiguratorColor|null $colorItem * * @return Rent */ public function setColorItem(ConfiguratorColor $colorItem = null) { $this->color_item = $colorItem; return $this; } /** * Get colorItem. * * @return ConfiguratorColor|null */ public function getColorItem() { return $this->color_item; } /** * @var int */ private $position; /** * Set position. * * @param int $position * * @return Rent */ public function setPosition($position) { $this->position = $position; return $this; } /** * Get position. * * @return int */ public function getPosition() { return $this->position; }}