<?php
/**
* Created by PhpStorm.
* User: parcel
* Date: 12/29/18
* Time: 10:04 AM
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity(repositoryClass="App\Repository\DeliveryVehicleRepository")
* @ORM\Table(name="delivery_vehicle")
*/
class DeliveryVehicle {
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var \App\Entity\Delivery
* @Serializer\Type("App\Entity\Delivery")
* @ORM\ManyToOne(targetEntity="App\Entity\Delivery")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="delivery_id", referencedColumnName="id")
* })
*/
private $delivery;
/**
* @var \App\Entity\Vehicle
* @Serializer\Type("App\Entity\Vehicle")
* @ORM\ManyToOne(targetEntity="App\Entity\Vehicle")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="vehicle_id", referencedColumnName="id")
* })
*/
private $vehicle;
/**
* @ORM\Column(type="boolean")
*/
private $isVerified;
/**
* @var \App\Entity\User
* @Serializer\Type("App\Entity\User")
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="verified_by", referencedColumnName="id", nullable=true)
* })
*/
private $verifiedBy;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $verifiedAt;
/**
* @ORM\Column(type="boolean")
*/
private $isCancelled;
/**
* @var \App\Entity\User
* @Serializer\Type("App\Entity\User")
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="cancelled_by", referencedColumnName="id", nullable=true)
* })
*/
private $cancelledBy;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $cancelledAt;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @var \App\Entity\User
* @Serializer\Type("App\Entity\User")
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
* })
*/
private $createdBy;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return Delivery
*/
public function getDelivery()
{
return $this->delivery;
}
/**
* @param Delivery $delivery
*/
public function setDelivery($delivery)
{
$this->delivery = $delivery;
}
/**
* @return Vehicle
*/
public function getVehicle()
{
return $this->vehicle;
}
/**
* @param Vehicle $vehicle
*/
public function setVehicle($vehicle)
{
$this->vehicle = $vehicle;
}
/**
* @return mixed
*/
public function getisVerified()
{
return $this->isVerified;
}
/**
* @param mixed $isVerified
*/
public function setIsVerified($isVerified)
{
$this->isVerified = $isVerified;
}
/**
* @return User
*/
public function getVerifiedBy()
{
return $this->verifiedBy;
}
/**
* @param User $verifiedBy
*/
public function setVerifiedBy($verifiedBy)
{
$this->verifiedBy = $verifiedBy;
}
/**
* @return mixed
*/
public function getVerifiedAt()
{
return $this->verifiedAt;
}
/**
* @param mixed $verifiedAt
*/
public function setVerifiedAt($verifiedAt)
{
$this->verifiedAt = $verifiedAt;
}
/**
* @return mixed
*/
public function getisCancelled()
{
return $this->isCancelled;
}
/**
* @param mixed $isCancelled
*/
public function setIsCancelled($isCancelled)
{
$this->isCancelled = $isCancelled;
}
/**
* @return User
*/
public function getCancelledBy()
{
return $this->cancelledBy;
}
/**
* @param User $cancelledBy
*/
public function setCancelledBy($cancelledBy)
{
$this->cancelledBy = $cancelledBy;
}
/**
* @return mixed
*/
public function getCancelledAt()
{
return $this->cancelledAt;
}
/**
* @param mixed $cancelledAt
*/
public function setCancelledAt($cancelledAt)
{
$this->cancelledAt = $cancelledAt;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* @param mixed $createdAt
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
}
/**
* @return User
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* @param User $createdBy
*/
public function setCreatedBy($createdBy)
{
$this->createdBy = $createdBy;
}
}