148 lines
2.8 KiB
PHP
148 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use DateTime;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="jo_rejection")
|
|
*/
|
|
class JORejection
|
|
{
|
|
// unique id
|
|
/**
|
|
* @ORM\Id()
|
|
* @ORM\GeneratedValue()
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
protected $id;
|
|
|
|
// date the entry was created
|
|
/**
|
|
* @ORM\Column(type="datetime")
|
|
*/
|
|
protected $date_create;
|
|
|
|
// user who rejected hub
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="User")
|
|
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=true)
|
|
*/
|
|
protected $user;
|
|
|
|
// hub that was rejected
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Hub")
|
|
* @ORM\JoinColumn(name="hub_id", referencedColumnName="id", nullable=true)
|
|
*/
|
|
protected $hub;
|
|
|
|
// job order where hub was rejected
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="JobOrder", inversedBy="hub_rejections")
|
|
* @ORM\JoinColumn(name="jo_id", referencedColumnName="id", nullable=true)
|
|
*/
|
|
protected $job_order;
|
|
|
|
// generic reason for this rejection
|
|
/**
|
|
* @ORM\Column(type="string", length=255)
|
|
*/
|
|
protected $reason;
|
|
|
|
// remarks about this rejection
|
|
/**
|
|
* @ORM\Column(type="text", nullable=true)
|
|
*/
|
|
protected $remarks;
|
|
|
|
// contact person of hub about this rejection
|
|
/**
|
|
* @ORM\Column(type="string", length=255, nullable=true)
|
|
*/
|
|
protected $contact_person;
|
|
|
|
public function getID()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getDateCreate()
|
|
{
|
|
return $this->date_create;
|
|
}
|
|
|
|
public function setDateCreate(DateTime $date_create)
|
|
{
|
|
$this->date_create = $date_create;
|
|
return $this;
|
|
}
|
|
|
|
public function getUser()
|
|
{
|
|
return $this->user;
|
|
}
|
|
|
|
public function setUser(User $user)
|
|
{
|
|
$this->user = $user;
|
|
return $this;
|
|
}
|
|
|
|
public function getHub()
|
|
{
|
|
return $this->hub;
|
|
}
|
|
|
|
public function setHub(Hub $hub)
|
|
{
|
|
$this->hub = $hub;
|
|
return $this;
|
|
}
|
|
|
|
public function getJobOrder()
|
|
{
|
|
return $this->job_order;
|
|
}
|
|
|
|
public function setJobOrder(JobOrder $job_order)
|
|
{
|
|
$this->job_order = $job_order;
|
|
return $this;
|
|
}
|
|
|
|
public function getReason()
|
|
{
|
|
return $this->reason;
|
|
}
|
|
|
|
public function setReason($reason)
|
|
{
|
|
$this->reason = $reason;
|
|
return $this;
|
|
}
|
|
|
|
public function getRemarks()
|
|
{
|
|
return $this->remarks;
|
|
}
|
|
|
|
public function setRemarks($remarks)
|
|
{
|
|
$this->remarks = $remarks;
|
|
return $this;
|
|
}
|
|
|
|
public function getContactPerson()
|
|
{
|
|
return $this->contact_person;
|
|
}
|
|
|
|
public function setContactPerson($contact_person)
|
|
{
|
|
$this->contact_person = $contact_person;
|
|
return $this;
|
|
}
|
|
}
|