Add color field in customer vehicle

This commit is contained in:
Kendrick Chan 2018-01-12 15:36:27 +08:00
parent 2222628375
commit f4019fb423

View file

@ -56,6 +56,13 @@ class CustomerVehicle
*/
protected $model_year;
// color of customer's vehicle
/**
* @ORM\Column(type="string", length=25)
* @Assert\NotBlank()
*/
protected $color;
// vehicle status (new / second-hand)
/**
* @ORM\Column(type="string", length=15)
@ -154,6 +161,17 @@ class CustomerVehicle
return $this->model_year;
}
public function setColor($color)
{
$this->color = $color;
return $this;
}
public function getColor()
{
return $this->color;
}
public function setStatusCondition($status_condition)
{
$this->status_condition = $status_condition;