121 lines
2.2 KiB
PHP
121 lines
2.2 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
use App\Entity\Hub;
|
|
|
|
use DateTime;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="hub_filter_log")
|
|
*/
|
|
class HubFilterLog
|
|
{
|
|
// unique id
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="integer")
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected $id;
|
|
|
|
// date created
|
|
/**
|
|
* @ORM\Column(type="datetime")
|
|
*/
|
|
protected $date_create;
|
|
|
|
// hub that was not included in results
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Hub", inversedBy="hub_filtered")
|
|
* @ORM\JoinColumn(name="hub_filtered_id", referencedColumnName="id", nullable=true)
|
|
*/
|
|
protected $hub;
|
|
|
|
// filter that eliminated hub
|
|
/**
|
|
* @ORM\Column(type="string", length=80)
|
|
* @Assert\NotBlank()
|
|
*/
|
|
protected $filter_type_id;
|
|
|
|
// jo id that made request
|
|
/**
|
|
* @ORM\Column(type="integer", nullable=true)
|
|
*/
|
|
protected $jo_id;
|
|
|
|
// customer id that made request
|
|
/**
|
|
* @ORM\Column(type="integer", nullable=true)
|
|
*/
|
|
protected $customer_id;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->date_create = new DateTime();
|
|
$this->jo_id = null;
|
|
$this->customer_id = null;
|
|
}
|
|
|
|
public function getID()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getDateCreate()
|
|
{
|
|
return $this->date_create;
|
|
}
|
|
|
|
public function setHub(Hub $hub)
|
|
{
|
|
$this->hub = $hub;
|
|
return $this;
|
|
}
|
|
|
|
public function getHub()
|
|
{
|
|
return $this->hub;
|
|
}
|
|
|
|
public function setFilterTypeId($filter_type_id)
|
|
{
|
|
$this->filter_type_id = $filter_type_id;
|
|
return $this;
|
|
}
|
|
|
|
public function getFilterTypeId()
|
|
{
|
|
return $this->filter_type_id;
|
|
}
|
|
|
|
public function setJobOrderId($jo_id)
|
|
{
|
|
$this->jo_id = $jo_id;
|
|
return $this;
|
|
}
|
|
|
|
public function getJobOrderId()
|
|
{
|
|
return $this->jo_id;
|
|
}
|
|
|
|
public function setCustomerId($customer_id)
|
|
{
|
|
$this->customer_id = $customer_id;
|
|
return $this;
|
|
}
|
|
|
|
public function getCustomerId()
|
|
{
|
|
return $this->customer_id;
|
|
}
|
|
|
|
}
|
|
|