<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* Supplier
*
* @ORM\Table(name="suppliers")
* @ORM\Entity(repositoryClass="App\Repository\SupplierRepository")
* @ORM\HasLifecycleCallbacks()
*/
class Supplier
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*
* @Groups({"destination", "supplier:read"})
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="company", type="string", length=255, nullable=true)
*
* @Groups({"destination", "supplier:read"})
*/
private $company;
/**
* @var string
*
* @ORM\Column(name="group_id", type="integer", nullable=true)
*/
private $groupId;
/**
* @var string
*
* @ORM\Column(name="contact", type="string", length=255, nullable=true)
*/
private $contact;
/**
* @var string
*
* @ORM\Column(name="type_document", type="string", length=255, nullable=true)
*/
private $typeDocument;
/**
* @var string
*
* @ORM\Column(name="id_document", type="string", length=255, nullable=true)
*/
private $idDocument;
/**
* @var string
*
* @ORM\Column(name="address", type="string", length=255)
* @Assert\NotBlank()
*
* @Groups({"destination", "supplier:read"})
*/
private $address;
/**
* @var string
*
* @ORM\Column(name="population", type="string", length=255)
* @Assert\NotBlank()
*/
private $population;
/**
* @var string
*
* @ORM\Column(name="province", type="string", length=255)
* @Assert\NotBlank()
*/
private $province;
/**
* @var string
*
* @ORM\Column(name="region", type="string", length=255)
* @Assert\NotBlank()
*/
private $region;
/**
* @var string
*
* @ORM\Column(name="zip_code", type="string", length=255, nullable=true)
*/
private $zipCode;
/**
* @var string
*
* @ORM\Column(name="country", type="string", length=255)
* @Assert\NotBlank()
*/
private $country;
/**
* @var string
*
* @ORM\Column(name="telephone", type="string", length=255)
* @Assert\NotBlank()
*
* @Groups({"destination"})
*/
private $telephone;
/**
* @var string
*
* @ORM\Column(name="fax", type="string", length=255, nullable=true)
*/
private $fax;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255, nullable=true)
*
* @Groups({"destination"})
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="type", type="string", length=255, nullable=true)
* @Assert\NotBlank()
*/
private $type;
/**
* @var string
*
* @ORM\Column(name="tags", type="string", length=255, nullable=true)
*/
private $tags;
/**
* @var string
*
* @ORM\Column(name="preference", type="string", length=255)
* @Assert\NotBlank()
*
* @Groups({"destination"})
*/
private $preference;
/**
* @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 bool
*
* @ORM\Column(name="state", type="boolean")
*/
private $state;
/**
* @var string
*
* @ORM\Column(name="picture", type="string", length=255, nullable=true)
*/
private $picture;
/**
* @var string
*
* @ORM\Column(name="observation", type="text", nullable=true)
*/
private $observation;
/**
* @var string
*
* @ORM\Column(name="terms", type="text", nullable=true)
*/
private $terms;
/**
* @var string
*
* @ORM\Column(name="star", type="string", length=255, nullable=true)
*/
private $star;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255, nullable=true)
*
* @Groups({"destination", "supplier:read"})
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="url", type="string", length=255, nullable=true)
*
* @Groups({"destination"})
*/
private $url;
/**
* @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="accommodation", type="integer", nullable=true)
*/
private $accommodation;
/**
* @var bool
*
* @ORM\Column(name="is_supplier_in_out", type="boolean", nullable=true)
*/
private $isSupplierInOut;
/**
* @var bool
*
* @ORM\Column(name="is_supplier_green_patio", type="boolean", nullable=true)
*/
private $isSupplierGreenPatio;
/**
* @var bool
*
* @ORM\Column(name="is_supplier_av_express", type="boolean", nullable=true)
*/
private $isSupplierAvExpress;
/**
* @var bool
*
* @ORM\Column(name="is_supplier_develup", type="boolean", nullable=true)
*/
private $isSupplierDevelup;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set groupId
*
* @param integer $groupId
*
* @return Supplier
*/
public function setGroupId($groupId)
{
$this->groupId = $groupId;
return $this;
}
/**
* Get groupId
*
* @return integer
*/
public function getGroupId()
{
return $this->groupId;
}
/**
* Set company
*
* @param string $company
*
* @return Supplier
*/
public function setCompany($company)
{
$this->company = $company;
return $this;
}
/**
* Get company
*
* @return string
*/
public function getCompany()
{
return $this->company;
}
/**
* Set contact
*
* @param string $contact
*
* @return Supplier
*/
public function setContact($contact)
{
$this->contact = $contact;
return $this;
}
/**
* Get contact
*
* @return string
*/
public function getContact()
{
return $this->contact;
}
/**
* Set idDocument
*
* @param string $idDocument
*
* @return Supplier
*/
public function setIdDocument($idDocument)
{
$this->idDocument = $idDocument;
return $this;
}
/**
* Get idDocument
*
* @return string
*/
public function getIdDocument()
{
return $this->idDocument;
}
/**
* Set address
*
* @param string $address
*
* @return Supplier
*/
public function setAddress($address)
{
$this->address = $address;
return $this;
}
/**
* Get address
*
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Set population
*
* @param string $population
*
* @return Supplier
*/
public function setPopulation($population)
{
$this->population = $population;
return $this;
}
/**
* Get population
*
* @return string
*/
public function getPopulation()
{
return $this->population;
}
/**
* Set province
*
* @param string $province
*
* @return Supplier
*/
public function setProvince($province)
{
$this->province = $province;
return $this;
}
/**
* Get province
*
* @return string
*/
public function getProvince()
{
return $this->province;
}
/**
* Set zipCode
*
* @param string $zipCode
*
* @return Supplier
*/
public function setZipCode($zipCode)
{
$this->zipCode = $zipCode;
return $this;
}
/**
* Get zipCode
*
* @return string
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set country
*
* @param string $country
*
* @return Supplier
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Get country
*
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* Set telephone
*
* @param string $telephone
*
* @return Supplier
*/
public function setTelephone($telephone)
{
$this->telephone = $telephone;
return $this;
}
/**
* Get telephone
*
* @return string
*/
public function getTelephone()
{
return $this->telephone;
}
/**
* Set fax
*
* @param string $fax
*
* @return Supplier
*/
public function setFax($fax)
{
$this->fax = $fax;
return $this;
}
/**
* Get fax
*
* @return string
*/
public function getFax()
{
return $this->fax;
}
/**
* Set email
*
* @param string $email
*
* @return Supplier
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set type
*
* @param string $type
*
* @return Supplier
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Set preference
*
* @param string $preference
*
* @return Supplier
*/
public function setPreference($preference)
{
$this->preference = $preference;
return $this;
}
/**
* Get preference
*
* @return string
*/
public function getPreference()
{
return $this->preference;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return Supplier
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return int
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return Supplier
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return int
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* Set state
*
* @param boolean $state
*
* @return Supplier
*/
public function setState($state)
{
$this->state = $state;
return $this;
}
/**
* Get state
*
* @return bool
*/
public function getState()
{
return $this->state;
}
/**
* Set picture
*
* @param string $picture
*
* @return Supplier
*/
public function setPicture($picture)
{
$this->picture = $picture;
return $this;
}
/**
* Get picture
*
* @return string
*/
public function getPicture()
{
return $this->picture;
}
/**
* Set observation
*
* @param string $observation
*
* @return Supplier
*/
public function setObservation($observation)
{
$this->observation = $observation;
return $this;
}
/**
* Get observation
*
* @return string
*/
public function getObservation()
{
return $this->observation;
}
/**
* Set createdAt
*
* @param \Datetime $createdAt
*
* @return Supplier
*/
public function setCreatedAt(\Datetime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedAt
*
* @param \Datetime $updatedAt
*
* @return Supplier
*/
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 star
*
* @param string $star
*
* @return Supplier
*/
public function setStar($star)
{
$this->star = $star;
return $this;
}
/**
* Get star
*
* @return string
*/
public function getStar()
{
return $this->star;
}
/**
* Set name
*
* @param string $name
*
* @return Supplier
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set url
*
* @param string $url
*
* @return Supplier
*/
public function setUrl($url)
{
$this->url = $url;
return $this;
}
/**
* Get url
*
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Set commission
*
* @param string $commission
*
* @return Supplier
*/
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 Supplier
*/
public function setIva($iva)
{
$this->iva = $iva;
return $this;
}
/**
* Get iva
*
* @return string
*/
public function getIva()
{
return $this->iva;
}
/**
* Set terms
*
* @param string $terms
*
* @return Supplier
*/
public function setTerms($terms)
{
$this->terms = $terms;
return $this;
}
/**
* Get terms
*
* @return string
*/
public function getTerms()
{
return $this->terms;
}
/**
* Set typeDocument
*
* @param string $typeDocument
*
* @return Supplier
*/
public function setTypeDocument($typeDocument)
{
$this->typeDocument = $typeDocument;
return $this;
}
/**
* Get typeDocument
*
* @return string
*/
public function getTypeDocument()
{
return $this->typeDocument;
}
/**
* Set accommodation
*
* @param integer $accommodation
*
* @return Supplier
*/
public function setAccommodation($accommodation)
{
$this->accommodation = $accommodation;
return $this;
}
/**
* Get accommodation
*
* @return int
*/
public function getAccommodation()
{
return $this->accommodation;
}
/**
* Set tags
*
* @param string $tags
*
* @return Supplier
*/
public function setTags($tags)
{
$this->tags = $tags;
return $this;
}
/**
* Get tags
*
* @return string
*/
public function getTags()
{
return $this->tags;
}
/**
* Set region
*
* @param string $region
*
* @return Supplier
*/
public function setRegion($region)
{
$this->region = $region;
return $this;
}
/**
* Get region
*
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Set isSupplierInOut
*
* @param boolean $isSupplierInOut
*
* @return Supplier
*/
public function setIsSupplierInOut($isSupplierInOut)
{
$this->isSupplierInOut = $isSupplierInOut;
return $this;
}
/**
* Get isSupplierInOut
*
* @return boolean
*/
public function getIsSupplierInOut()
{
return $this->isSupplierInOut;
}
/**
* Set isSupplierGreenPatio
*
* @param boolean $isSupplierGreenPatio
*
* @return Supplier
*/
public function setIsSupplierGreenPatio($isSupplierGreenPatio)
{
$this->isSupplierGreenPatio = $isSupplierGreenPatio;
return $this;
}
/**
* Get isSupplierGreenPatio
*
* @return boolean
*/
public function getIsSupplierGreenPatio()
{
return $this->isSupplierGreenPatio;
}
/**
* Set isSupplierAvExpress
*
* @param boolean $isSupplierAvExpress
*
* @return Supplier
*/
public function setIsSupplierAvExpress($isSupplierAvExpress)
{
$this->isSupplierAvExpress = $isSupplierAvExpress;
return $this;
}
/**
* Get isSupplierAvExpress
*
* @return boolean
*/
public function getIsSupplierAvExpress()
{
return $this->isSupplierAvExpress;
}
/**
* Set isSupplierDevelup
*
* @param boolean $isSupplierDevelup
*
* @return Supplier
*/
public function setIsSupplierDevelup($isSupplierDevelup)
{
$this->isSupplierDevelup = $isSupplierDevelup;
return $this;
}
/**
* Get isSupplierDevelup
*
* @return boolean
*/
public function getIsSupplierDevelup()
{
return $this->isSupplierDevelup;
}
}