<?php
namespace Customize\Entity;
use Doctrine\ORM\Mapping as ORM;
if (!class_exists('\Customize\Entity\Maker')) {
/**
* Maker
*
* @ORM\Table(name="dtb_maker")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
* @ORM\HasLifecycleCallbacks()
* @ORM\Entity(repositoryClass="Customize\Repository\MakerRepository")
* @ORM\Cache(usage="NONSTRICT_READ_WRITE")
*/
class Maker extends \Eccube\Entity\AbstractEntity
{
/**
* @return string
*/
public function __toString()
{
return (string) $this->getName();
}
/**
* @var int
*
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
protected $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*/
protected $name;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="Customize\Entity\ProductMaker", mappedBy="Maker")
*/
protected $ProductMaker;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="Customize\Entity\VehicleModel", mappedBy="Maker")
*/
protected $VehicleModel;
/**
* @var \Customize\Entity\Master\CustomStatus
*
* @ORM\ManyToOne(targetEntity="Customize\Entity\Master\CustomStatus")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="status_id", referencedColumnName="id")
* })
*/
private $Status;
/**
* @var int
*
* @ORM\Column(name="sort_no", type="integer")
*/
private $sort_no;
/**
* @var \DateTime
*
* @ORM\Column(name="create_date", type="datetimetz")
*/
private $create_date;
/**
* @var \DateTime
*
* @ORM\Column(name="update_date", type="datetimetz")
*/
private $update_date;
/**
* @var \DateTime
*
* @ORM\Column(name="del_flg", type="datetimetz")
*/
/**
* Constructor
*/
public function __construct()
{
$this->ProductMaker = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Set id.
*
* @param int $id
*
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name.
*
* @param string $name
*
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Get VehicleModel.
* @return \Doctrine\Common\Collections\Collection
*/
public function getVehicleModel()
{
return $this->VehicleModel;
}
/**
* Add productMaker.
*
* @param \Customize\Entity\ProductMaker $productMaker
*
* @return Maker
*/
public function addProductMaker(ProductMaker $productMaker)
{
$this->ProductMaker[] = $productMaker;
return $this;
}
/**
* Remove productMaker.
*
* @param \Customize\Entity\ProductMaker $productMaker
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeProductMaker(ProductMaker $productMaker)
{
return $this->ProductMaker->removeElement($productMaker);
}
/**
* Get productMaker.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getProductMaker()
{
return $this->ProductMaker;
}
/**
* Set Status.
*
* @param \Customize\Entity\Master\CustomStatus|null $Status
*
* @return Catalog
*/
public function setStatus(Master\CustomStatus $Status = null)
{
$this->Status = $Status;
return $this;
}
/**
* Get Status.
*
* @return \Customize\Entity\Master\CustomStatus|null
*/
public function getStatus()
{
return $this->Status;
}
/**
* Set sortNo.
*
* @param int $sortNo
*
* @return Category
*/
public function setSortNo($sortNo)
{
$this->sort_no = $sortNo;
return $this;
}
/**
* Get sortNo.
*
* @return int
*/
public function getSortNo()
{
return $this->sort_no;
}
/**
* Set createDate.
*
* @param \DateTime $createDate
*
* @return Product
*/
public function setCreateDate($createDate)
{
$this->create_date = $createDate;
return $this;
}
/**
* Get createDate.
*
* @return \DateTime
*/
public function getCreateDate()
{
return $this->create_date;
}
/**
* Set updateDate.
*
* @param \DateTime $updateDate
*
* @return Product
*/
public function setUpdateDate($updateDate)
{
$this->update_date = $updateDate;
return $this;
}
/**
* Get updateDate.
*
* @return \DateTime
*/
public function getUpdateDate()
{
return $this->update_date;
}
}
}