49 lines
828 B
PHP
49 lines
828 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use DateTime;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="plate_number")
|
|
*/
|
|
class PlateNumber
|
|
{
|
|
// the plate number
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="string", length=20)
|
|
*/
|
|
protected $id;
|
|
|
|
// the vehicle entity
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Vehicle")
|
|
* @ORM\JoinColumn(name="vehicle_id", referencedColumnName="id", nullable=true)
|
|
*/
|
|
protected $vehicle;
|
|
|
|
public function setID($id)
|
|
{
|
|
$this->id = $id;
|
|
return $this;
|
|
}
|
|
|
|
public function getID()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setVehicle(Vehicle $vehicle)
|
|
{
|
|
$this->vehicle = $vehicle;
|
|
return $this;
|
|
}
|
|
|
|
public function getVehicle()
|
|
{
|
|
return $this->vehicle;
|
|
}
|
|
}
|