src/InsuranceBundle/Entity/Program.php line 12

Open in your IDE?
  1. <?php
  2. namespace InsuranceBundle\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use DateTime;
  5. use Doctrine\Common\Collections\Collection;
  6. /**
  7.  * Program
  8.  */
  9. class Program
  10. {
  11.     /**
  12.      * @var integer
  13.      */
  14.     private $id;
  15.     /**
  16.      * @var string
  17.      */
  18.     private $title;
  19.     /**
  20.      * @var integer
  21.      */
  22.     private $state;
  23.     /**
  24.      * @var DateTime
  25.      */
  26.     private $date_create;
  27.     /**
  28.      * @var Collection
  29.      */
  30.     private $coeficient;
  31.     /**
  32.      * Constructor
  33.      */
  34.     public function __construct()
  35.     {
  36.         $this->coeficient = new ArrayCollection();
  37.     }
  38.     /**
  39.      * Get id
  40.      *
  41.      * @return integer
  42.      */
  43.     public function getId()
  44.     {
  45.         return $this->id;
  46.     }
  47.     /**
  48.      * Set title
  49.      *
  50.      * @param string $title
  51.      *
  52.      * @return Program
  53.      */
  54.     public function setTitle($title)
  55.     {
  56.         $this->title $title;
  57.         return $this;
  58.     }
  59.     /**
  60.      * Get title
  61.      *
  62.      * @return string
  63.      */
  64.     public function getTitle()
  65.     {
  66.         return $this->title;
  67.     }
  68.     /**
  69.      * Set state
  70.      *
  71.      * @param integer $state
  72.      *
  73.      * @return Program
  74.      */
  75.     public function setState($state)
  76.     {
  77.         $this->state $state;
  78.         return $this;
  79.     }
  80.     /**
  81.      * Get state
  82.      *
  83.      * @return integer
  84.      */
  85.     public function getState()
  86.     {
  87.         return $this->state;
  88.     }
  89.     /**
  90.      * Set dateCreate
  91.      *
  92.      * @param DateTime $dateCreate
  93.      *
  94.      * @return Program
  95.      */
  96.     public function setDateCreate($dateCreate)
  97.     {
  98.         $this->date_create $dateCreate;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get dateCreate
  103.      *
  104.      * @return DateTime
  105.      */
  106.     public function getDateCreate()
  107.     {
  108.         return $this->date_create;
  109.     }
  110.     /**
  111.      * Add coeficient
  112.      *
  113.      * @param Coefficient $coeficient
  114.      *
  115.      * @return Program
  116.      */
  117.     public function addCoeficient(Coefficient $coeficient)
  118.     {
  119.         $this->coeficient[] = $coeficient;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Remove coeficient
  124.      *
  125.      * @param Coefficient $coeficient
  126.      */
  127.     public function removeCoeficient(Coefficient $coeficient)
  128.     {
  129.         $this->coeficient->removeElement($coeficient);
  130.     }
  131.     /**
  132.      * Get coeficient
  133.      *
  134.      * @return Collection
  135.      */
  136.     public function getCoeficient()
  137.     {
  138.         return $this->coeficient;
  139.     }
  140. }