<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SupplierCreative
*
* @ORM\Table(name="suppliers_creative")
* @ORM\Entity(repositoryClass="App\Repository\SupplierCreativeRepository")
* @ORM\HasLifecycleCallbacks()
*/
class SupplierCreative
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="supplier_id", type="integer")
*/
private $supplierId;
/**
* @var int
*
* @ORM\Column(name="control_category_id", type="integer")
*/
private $controlCat;
/**
* @var string
*
* @ORM\Column(name="control_category", type="string", length=255)
*/
private $controlCategory;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer")
*/
private $updatedId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* @var string
*
* @ORM\Column(name="supplier_id_ctrl", type="integer")
*/
private $supplierIdCtrl;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set title
*
* @param string $title
*
* @return SupplierCreative
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set supplierId
*
* @param integer $supplierId
*
* @return SupplierCreative
*/
public function setSupplierId($supplierId)
{
$this->supplierId = $supplierId;
return $this;
}
/**
* Get supplierId
*
* @return integer
*/
public function getSupplierId()
{
return $this->supplierId;
}
/**
* Set controlCat
*
* @param integer $controlCat
*
* @return SupplierCreative
*/
public function setControlCat($controlCat)
{
$this->controlCat = $controlCat;
return $this;
}
/**
* Get controlCat
*
* @return integer
*/
public function getControlCat()
{
return $this->controlCat;
}
/**
* Set controlCategory
*
* @param string $controlCategory
*
* @return SupplierCreative
*/
public function setControlCategory($controlCategory)
{
$this->controlCategory = $controlCategory;
return $this;
}
/**
* Get controlCategory
*
* @return string
*/
public function getControlCategory()
{
return $this->controlCategory;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return SupplierCreative
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return integer
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return SupplierCreative
*/
public function setCreatedAt(\Datetime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return SupplierCreative
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return integer
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return SupplierCreative
*/
public function setUpdatedAt(\Datetime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set supplierIdCtrl
*
* @param integer $supplierIdCtrl
*
* @return SupplierCreative
*/
public function setSupplierIdCtrl($supplierIdCtrl)
{
$this->supplierIdCtrl = $supplierIdCtrl;
return $this;
}
/**
* Get supplierIdCtrl
*
* @return integer
*/
public function getSupplierIdCtrl()
{
return $this->supplierIdCtrl;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
}