<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* SupplierServicesAssistant
*
* @ORM\Table(name="suppliers_services_assistant")
* @ORM\Entity(repositoryClass="App\Repository\SupplierServicesAssistantRepository")
* @ORM\HasLifecycleCallbacks()
*/
class SupplierServicesAssistant
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @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="Name", type="string", length=255)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="quantity", type="string", length=255)
*/
private $quantity;
/**
* @var string
*
* @ORM\Column(name="currency", type="string", length=255, nullable=true)
*/
private $currency;
/**
* @var string
*
* @ORM\Column(name="price", type="decimal", precision=10, scale=2, nullable=true)
*/
private $price;
/**
* @var string
*
* @ORM\Column(name="commission", type="string", length=255, nullable=true)
*/
private $commission;
/**
* @var string
*
* @ORM\Column(name="iva", type="string", length=255, nullable=true)
*/
private $iva;
/**
* @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 name
*
* @param string $name
*
* @return SupplierServicesAssistant
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set price
*
* @param string $price
*
* @return SupplierServicesAssistant
*/
public function setPrice($price)
{
$this->price = $price;
return $this;
}
/**
* Get price
*
* @return string
*/
public function getPrice()
{
return $this->price;
}
/**
* Set quantity
*
* @param string $quantity
*
* @return SupplierServicesAssistant
*/
public function setQuantity($quantity)
{
$this->quantity = $quantity;
return $this;
}
/**
* Get quantity
*
* @return string
*/
public function getQuantity()
{
return $this->quantity;
}
/**
* Set currency
*
* @param string $currency
*
* @return SupplierServicesAssistant
*/
public function setCurrency($currency)
{
$this->currency = $currency;
return $this;
}
/**
* Get currency
*
* @return string
*/
public function getCurrency()
{
return $this->currency;
}
/**
* Set commission
*
* @param string $commission
*
* @return SupplierServicesAssistant
*/
public function setCommission($commission)
{
$this->commission = $commission;
return $this;
}
/**
* Get commission
*
* @return string
*/
public function getCommission()
{
return $this->commission;
}
/**
* Set iva
*
* @param string $iva
*
* @return SupplierServicesAssistant
*/
public function setIva($iva)
{
$this->iva = $iva;
return $this;
}
/**
* Get iva
*
* @return string
*/
public function getIva()
{
return $this->iva;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return SupplierServicesAssistant
*/
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 SupplierServicesAssistant
*/
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 SupplierServicesAssistant
*/
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 SupplierServicesAssistant
*/
public function setUpdatedAt(\Datetime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
/**
* Set supplierId
*
* @param integer $supplierId
*
* @return SupplierServicesAssistant
*/
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 SupplierServicesAssistant
*/
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 SupplierServicesAssistant
*/
public function setControlCategory($controlCategory)
{
$this->controlCategory = $controlCategory;
return $this;
}
/**
* Get controlCategory
*
* @return string
*/
public function getControlCategory()
{
return $this->controlCategory;
}
/**
* Set supplierIdCtrl
*
* @param integer $supplierIdCtrl
*
* @return SupplierServicesAssistant
*/
public function setSupplierIdCtrl($supplierIdCtrl)
{
$this->supplierIdCtrl = $supplierIdCtrl;
return $this;
}
/**
* Get supplierIdCtrl
*
* @return integer
*/
public function getSupplierIdCtrl()
{
return $this->supplierIdCtrl;
}
}