<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* SupplierAccommodation
*
* @ORM\Table(name="suppliers_accommodation")
* @ORM\Entity(repositoryClass="App\Repository\SupplierAccommodationRepository")
* @ORM\HasLifecycleCallbacks()
*/
class SupplierAccommodation
{
/**
* @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="supplier_id_ctrl", type="integer")
*/
private $supplierIdCtrl;
/**
* @var string
*
* @ORM\Column(name="size", type="string", length=255, nullable=true)
*/
private $size;
/**
* @var int
*
* @ORM\Column(name="quantity", type="integer")
* @Assert\NotBlank()
*/
private $quantity;
/**
* @var string
*
* @ORM\Column(name="price", type="decimal", scale=2, nullable=true)
*/
private $price;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255, nullable=true)
*/
private $name;
/**
* @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="minibar", type="boolean")
*/
private $minibar;
/**
* @var bool
*
* @ORM\Column(name="wifi", type="boolean")
*/
private $wifi;
/**
* @var bool
*
* @ORM\Column(name="air_conditioner", type="boolean")
*/
private $airconditioner;
/**
* @var bool
*
* @ORM\Column(name="calefaction", type="boolean")
*/
private $calefaction;
/**
* @var bool
*
* @ORM\Column(name="pool", type="boolean")
*/
private $pool;
/**
* @var bool
*
* @ORM\Column(name="bath", type="boolean")
*/
private $bath;
/**
* @var bool
*
* @ORM\Column(name="coffee_maker", type="boolean")
*/
private $coffeemaker;
/**
* @var bool
*
* @ORM\Column(name="kitchen", type="boolean")
*/
private $kitchen;
/**
* @var bool
*
* @ORM\Column(name="washer", type="boolean")
*/
private $washer;
/**
* @var bool
*
* @ORM\Column(name="flat_tv", type="boolean")
*/
private $flattv;
/**
* @var bool
*
* @ORM\Column(name="electric_kettle", type="boolean")
*/
private $electrickettle;
/**
* @var bool
*
* @ORM\Column(name="views", type="boolean")
*/
private $views;
/**
* @var bool
*
* @ORM\Column(name="pets", type="boolean")
*/
private $pets;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set size
*
* @param string $size
*
* @return SupplierAccommodation
*/
public function setSize($size)
{
$this->size = $size;
return $this;
}
/**
* Get size
*
* @return string
*/
public function getSize()
{
return $this->size;
}
/**
* Set quantity
*
* @param integer $quantity
*
* @return SupplierAccommodation
*/
public function setQuantity($quantity)
{
$this->quantity = $quantity;
return $this;
}
/**
* Get quantity
*
* @return int
*/
public function getQuantity()
{
return $this->quantity;
}
/**
* Set price
*
* @param string $price
*
* @return SupplierAccommodation
*/
public function setPrice($price)
{
$this->price = $price;
return $this;
}
/**
* Get price
*
* @return string
*/
public function getPrice()
{
return $this->price;
}
/**
* Set name
*
* @param string $name
*
* @return SupplierAccommodation
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return SupplierAccommodation
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return int
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return SupplierAccommodation
*/
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 SupplierAccommodation
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return int
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return SupplierAccommodation
*/
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 SupplierAccommodation
*/
public function setSupplierId($supplierId)
{
$this->supplierId = $supplierId;
return $this;
}
/**
* Get supplierId
*
* @return integer
*/
public function getSupplierId()
{
return $this->supplierId;
}
/**
* Set supplierIdCtrl
*
* @param integer $supplierIdCtrl
*
* @return SupplierAccommodation
*/
public function setSupplierIdCtrl($supplierIdCtrl)
{
$this->supplierIdCtrl = $supplierIdCtrl;
return $this;
}
/**
* Get supplierIdCtrl
*
* @return integer
*/
public function getSupplierIdCtrl()
{
return $this->supplierIdCtrl;
}
/**
* Set minibar
*
* @param boolean $minibar
*
* @return SupplierAccommodation
*/
public function setMinibar($minibar)
{
$this->minibar = $minibar;
return $this;
}
/**
* Get minibar
*
* @return boolean
*/
public function getMinibar()
{
return $this->minibar;
}
/**
* Set wifi
*
* @param boolean $wifi
*
* @return SupplierAccommodation
*/
public function setWifi($wifi)
{
$this->wifi = $wifi;
return $this;
}
/**
* Get wifi
*
* @return boolean
*/
public function getWifi()
{
return $this->wifi;
}
/**
* Set airconditioner
*
* @param boolean $airconditioner
*
* @return SupplierAccommodation
*/
public function setAirconditioner($airconditioner)
{
$this->airconditioner = $airconditioner;
return $this;
}
/**
* Get airconditioner
*
* @return boolean
*/
public function getAirconditioner()
{
return $this->airconditioner;
}
/**
* Set calefaction
*
* @param boolean $calefaction
*
* @return SupplierAccommodation
*/
public function setCalefaction($calefaction)
{
$this->calefaction = $calefaction;
return $this;
}
/**
* Get calefaction
*
* @return boolean
*/
public function getCalefaction()
{
return $this->calefaction;
}
/**
* Set pool
*
* @param boolean $pool
*
* @return SupplierAccommodation
*/
public function setPool($pool)
{
$this->pool = $pool;
return $this;
}
/**
* Get pool
*
* @return boolean
*/
public function getPool()
{
return $this->pool;
}
/**
* Set bath
*
* @param boolean $bath
*
* @return SupplierAccommodation
*/
public function setBath($bath)
{
$this->bath = $bath;
return $this;
}
/**
* Get bath
*
* @return boolean
*/
public function getBath()
{
return $this->bath;
}
/**
* Set coffeemaker
*
* @param boolean $coffeemaker
*
* @return SupplierAccommodation
*/
public function setCoffeemaker($coffeemaker)
{
$this->coffeemaker = $coffeemaker;
return $this;
}
/**
* Get coffeemaker
*
* @return boolean
*/
public function getCoffeemaker()
{
return $this->coffeemaker;
}
/**
* Set kitchen
*
* @param boolean $kitchen
*
* @return SupplierAccommodation
*/
public function setKitchen($kitchen)
{
$this->kitchen = $kitchen;
return $this;
}
/**
* Get kitchen
*
* @return boolean
*/
public function getKitchen()
{
return $this->kitchen;
}
/**
* Set washer
*
* @param boolean $washer
*
* @return SupplierAccommodation
*/
public function setWasher($washer)
{
$this->washer = $washer;
return $this;
}
/**
* Get washer
*
* @return boolean
*/
public function getWasher()
{
return $this->washer;
}
/**
* Set flattv
*
* @param boolean $flattv
*
* @return SupplierAccommodation
*/
public function setFlattv($flattv)
{
$this->flattv = $flattv;
return $this;
}
/**
* Get flattv
*
* @return boolean
*/
public function getFlattv()
{
return $this->flattv;
}
/**
* Set electrickettle
*
* @param boolean $electrickettle
*
* @return SupplierAccommodation
*/
public function setElectrickettle($electrickettle)
{
$this->electrickettle = $electrickettle;
return $this;
}
/**
* Get electrickettle
*
* @return boolean
*/
public function getElectrickettle()
{
return $this->electrickettle;
}
/**
* Set views
*
* @param boolean $views
*
* @return SupplierAccommodation
*/
public function setViews($views)
{
$this->views = $views;
return $this;
}
/**
* Get views
*
* @return boolean
*/
public function getViews()
{
return $this->views;
}
/**
* Set pets
*
* @param boolean $pets
*
* @return SupplierAccommodation
*/
public function setPets($pets)
{
$this->pets = $pets;
return $this;
}
/**
* Get pets
*
* @return boolean
*/
public function getPets()
{
return $this->pets;
}
/**
* Set controlCat
*
* @param integer $controlCat
*
* @return SupplierAccommodation
*/
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 SupplierAccommodation
*/
public function setControlCategory($controlCategory)
{
$this->controlCategory = $controlCategory;
return $this;
}
/**
* Get controlCategory
*
* @return string
*/
public function getControlCategory()
{
return $this->controlCategory;
}
}