<?php
namespace InsuranceBundle\Entity;use Doctrine\Common\Collections\ArrayCollection;use DateTime;use Doctrine\Common\Collections\Collection;/** * Program */class Program
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $title;
/**
* @var integer
*/
private $state;
/** * @var DateTime */ private $date_create;
/** * @var Collection */ private $coeficient;
/**
* Constructor
*/
public function __construct()
{
$this->coeficient = new ArrayCollection();
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set title
*
* @param string $title
*
* @return Program
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set state
*
* @param integer $state
*
* @return Program
*/
public function setState($state)
{
$this->state = $state;
return $this;
}
/**
* Get state
*
* @return integer
*/
public function getState()
{
return $this->state;
}
/** * Set dateCreate * * @param DateTime $dateCreate * * @return Program */ public function setDateCreate($dateCreate)
{
$this->date_create = $dateCreate;
return $this;
}
/** * Get dateCreate * * @return DateTime */ public function getDateCreate()
{
return $this->date_create;
}
/** * Add coeficient * * @param Coefficient $coeficient * * @return Program */ public function addCoeficient(Coefficient $coeficient)
{
$this->coeficient[] = $coeficient;
return $this;
}
/** * Remove coeficient * * @param Coefficient $coeficient */ public function removeCoeficient(Coefficient $coeficient)
{
$this->coeficient->removeElement($coeficient);
}
/** * Get coeficient * * @return Collection */ public function getCoeficient()
{
return $this->coeficient;
}
}