Commit 8001affd authored by wilhelmhb's avatar wilhelmhb

entities

parent 5b8c4d4a
<?php
namespace ApiBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PsBox
*
* @ORM\Table(name="ps_box", indexes={@ORM\Index(name="id_hive", columns={"id_hive"}), @ORM\Index(name="id_client", columns={"id_client"}), @ORM\Index(name="serial_number", columns={"serial_number"}), @ORM\Index(name="version", columns={"version"}), @ORM\Index(name="active", columns={"active"}), @ORM\Index(name="date_add", columns={"date_add"}), @ORM\Index(name="date_upd", columns={"date_upd"})})
* @ORM\Entity
*/
class PsBox
{
/**
* @var integer
*
* @ORM\Column(name="id_box", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $idBox;
/**
* @var integer
*
* @ORM\Column(name="id_hive", type="integer", nullable=true)
*/
private $idHive;
/**
* @var integer
*
* @ORM\Column(name="id_client", type="integer", nullable=true)
*/
private $idClient;
/**
* @var string
*
* @ORM\Column(name="serial_number", type="string", length=32, nullable=false)
*/
private $serialNumber = '';
/**
* @var string
*
* @ORM\Column(name="version", type="string", length=32, nullable=false)
*/
private $version = '';
/**
* @var string
*
* @ORM\Column(name="note", type="text", length=65535, nullable=true)
*/
private $note;
/**
* @var boolean
*
* @ORM\Column(name="active", type="boolean", nullable=false, options={"default" = "0"})
*/
private $active;
/**
* @var \DateTime
*
* @ORM\Column(name="date_add", type="datetime", nullable=false, options={"default" = "now"})
*/
private $dateAdd;
/**
* @var \DateTime
*
* @ORM\Column(name="date_upd", type="datetime", nullable=false, options={"default" = "now"})
*/
private $dateUpd;
/**
* Get idBox
*
* @return integer
*/
public function getId()
{
return $this->idBox;
}
/**
* Get idBox
*
* @return integer
*/
public function getIdBox()
{
return $this->idBox;
}
/**
* Set idHive
*
* @param integer $idHive
*
* @return PsBox
*/
public function setIdHive($idHive)
{
$this->idHive = $idHive;
return $this;
}
/**
* Get idHive
*
* @return integer
*/
public function getIdHive()
{
return $this->idHive;
}
/**
* Set idClient
*
* @param integer $idClient
*
* @return PsBox
*/
public function setIdClient($idClient)
{
$this->idClient = $idClient;
return $this;
}
/**
* Get idClient
*
* @return integer
*/
public function getIdClient()
{
return $this->idClient;
}
/**
* Set serialNumber
*
* @param string $serialNumber
*
* @return PsBox
*/
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
return $this;
}
/**
* Get serialNumber
*
* @return string
*/
public function getSerialNumber()
{
return $this->serialNumber;
}
/**
* Set version
*
* @param string $version
*
* @return PsBox
*/
public function setVersion($version)
{
$this->version = $version;
return $this;
}
/**
* Get version
*
* @return string
*/
public function getVersion()
{
return $this->version;
}
/**
* Set note
*
* @param string $note
*
* @return PsBox
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Get note
*
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* Set active
*
* @param boolean $active
*
* @return PsBox
*/
public function setActive($active)
{
$this->active = $active;
return $this;
}
/**
* Get active
*
* @return boolean
*/
public function getActive()
{
return $this->active;
}
/**
* Set dateAdd
*
* @param \DateTime $dateAdd
*
* @return PsBox
*/
public function setDateAdd($dateAdd)
{
$this->dateAdd = $dateAdd;
return $this;
}
/**
* Get dateAdd
*
* @return \DateTime
*/
public function getDateAdd()
{
return $this->dateAdd;
}
/**
* Set dateUpd
*
* @param \DateTime $dateUpd
*
* @return PsBox
*/
public function setDateUpd($dateUpd)
{
$this->dateUpd = $dateUpd;
return $this;
}
/**
* Get dateUpd
*
* @return \DateTime
*/
public function getDateUpd()
{
return $this->dateUpd;
}
}
<?php
namespace ApiBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PsClient
*
* @ORM\Table(name="ps_client", indexes={@ORM\Index(name="id_client_type", columns={"id_client_type"}), @ORM\Index(name="id_employee", columns={"id_client_type"}), @ORM\Index(name="id_customer", columns={"id_customer"}), @ORM\Index(name="active", columns={"active"}), @ORM\Index(name="date_add", columns={"date_add"}), @ORM\Index(name="date_upd", columns={"date_upd"})})
* @ORM\Entity
*/
class PsClient
{
/**
* @var integer
*
* @ORM\Column(name="id_client", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $idClient;
/**
* @var integer
*
* @ORM\Column(name="id_client_type", type="integer", nullable=false)
*/
private $idClientType = '0';
/**
* @var integer
*
* @ORM\Column(name="id_employee", type="integer", nullable=false)
*/
private $idEmployee = '0';
/**
* @var integer
*
* @ORM\Column(name="id_customer", type="integer", nullable=false)
*/
private $idCustomer = '0';
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=64, nullable=true)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="telephone", type="string", length=64, nullable=true)
*/
private $telephone;
/**
* @var string
*
* @ORM\Column(name="note", type="text", length=65535, nullable=true)
*/
private $note;
/**
* @var boolean
*
* @ORM\Column(name="active", type="boolean", nullable=false, options={"default" = "0"})
*/
private $active;
/**
* @var \DateTime
*
* @ORM\Column(name="date_add", type="datetime", nullable=false, options={"default" = "now"})
*/
private $dateAdd;
/**
* @var \DateTime
*
* @ORM\Column(name="date_upd", type="datetime", nullable=false, options={"default" = "now"})
*/
private $dateUpd;
/**
* Get idClient
*
* @return integer
*/
public function getId()
{
return $this->idClient;
}
/**
* Get idClient
*
* @return integer
*/
public function getIdClient()
{
return $this->idClient;
}
/**
* Set idClientType
*
* @param integer $idClientType
*
* @return PsClient
*/
public function setIdClientType($idClientType)
{
$this->idClientType = $idClientType;
return $this;
}
/**
* Get idClientType
*
* @return integer
*/
public function getIdClientType()
{
return $this->idClientType;
}
/**
* Set idEmployee
*
* @param integer $idEmployee
*
* @return PsClient
*/
public function setIdEmployee($idEmployee)
{
$this->idEmployee = $idEmployee;
return $this;
}
/**
* Get idEmployee
*
* @return integer
*/
public function getIdEmployee()
{
return $this->idEmployee;
}
/**
* Set idCustomer
*
* @param integer $idCustomer
*
* @return PsClient
*/
public function setIdCustomer($idCustomer)
{
$this->idCustomer = $idCustomer;
return $this;
}
/**
* Get idCustomer
*
* @return integer
*/
public function getIdCustomer()
{
return $this->idCustomer;
}
/**
* Set name
*
* @param string $name
*
* @return PsClient
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set telephone
*
* @param string $telephone
*
* @return PsClient
*/
public function setTelephone($telephone)
{
$this->telephone = $telephone;
return $this;
}
/**
* Get telephone
*
* @return string
*/
public function getTelephone()
{
return $this->telephone;
}
/**
* Set note
*
* @param string $note
*
* @return PsClient
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Get note
*
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* Set active
*
* @param boolean $active
*
* @return PsClient
*/
public function setActive($active)
{
$this->active = $active;
return $this;
}
/**
* Get active
*
* @return boolean
*/
public function getActive()
{
return $this->active;
}
/**
* Set dateAdd
*
* @param \DateTime $dateAdd
*
* @return PsClient
*/
public function setDateAdd($dateAdd)
{
$this->dateAdd = $dateAdd;
return $this;
}
/**
* Get dateAdd
*
* @return \DateTime
*/
public function getDateAdd()
{
return $this->dateAdd;
}
/**
* Set dateUpd
*
* @param \DateTime $dateUpd
*
* @return PsClient
*/
public function setDateUpd($dateUpd)
{
$this->dateUpd = $dateUpd;
return $this;
}
/**
* Get dateUpd
*
* @return \DateTime
*/
public function getDateUpd()
{
return $this->dateUpd;
}
}
<?php
namespace ApiBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PsCustomNote
*
* @ORM\Table(name="ps_custom_notes", indexes={@ORM\Index(name="id", columns={"id"})})
* @ORM\Entity
*/
class PsCustomNote
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=20, nullable=false)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="message", type="string", length=100, nullable=false)
*/
private $message;
/**
* @var integer
*
* @ORM\Column(name="level", type="integer")
*/
private $level;
/**
* @var integer
*
* @ORM\Column(name="id_customer", type="integer")
*/
private $idCustomer;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return PsCustomNote
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set message
*
* @param string $message
*
* @return PsCustomNote
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* Get message
*
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Set level
*
* @param string $level
*
* @return PsCustomNote
*/
public function setLevel($level)
{
$this->level = $level;
return $this;
}
/**
* Get level
*
* @return integer
*/
public function getLevel()
{
return $this->level;
}
/**
* Set idCustomer
*
* @param string $idCustomer
*
* @return PsCustomNote
*/
public function setIdCustomer($idCustomer)
{
$this->idCustomer = $idCustomer;
return $this;
}
/**
* Get idCustomer
*