src/InsuranceBundle/Entity/Coefficient.php line 8

Open in your IDE?
  1. <?php
  2. namespace InsuranceBundle\Entity;
  3. /**
  4.  * Coefficient
  5.  */
  6. class Coefficient
  7. {
  8.     /**
  9.      * @var integer
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $title;
  16.     /**
  17.      * @var integer
  18.      */
  19.     private $type;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $params;
  24.     /**
  25.      * @var integer
  26.      */
  27.     private $state;
  28.     /**
  29.      * @var Program
  30.      */
  31.     private $program;
  32.     /**
  33.      * Get id
  34.      *
  35.      * @return integer
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * Set title
  43.      *
  44.      * @param string $title
  45.      *
  46.      * @return Coefficient
  47.      */
  48.     public function setTitle($title)
  49.     {
  50.         $this->title $title;
  51.         return $this;
  52.     }
  53.     /**
  54.      * Get title
  55.      *
  56.      * @return string
  57.      */
  58.     public function getTitle()
  59.     {
  60.         return $this->title;
  61.     }
  62.     /**
  63.      * Set type
  64.      *
  65.      * @param integer $type
  66.      *
  67.      * @return Coefficient
  68.      */
  69.     public function setType($type)
  70.     {
  71.         $this->type $type;
  72.         return $this;
  73.     }
  74.     /**
  75.      * Get type
  76.      *
  77.      * @return integer
  78.      */
  79.     public function getType()
  80.     {
  81.         return $this->type;
  82.     }
  83.     /**
  84.      * Set params
  85.      *
  86.      * @param string $params
  87.      *
  88.      * @return Coefficient
  89.      */
  90.     public function setParams($params)
  91.     {
  92.         $this->params $params;
  93.         return $this;
  94.     }
  95.     /**
  96.      * Get params
  97.      *
  98.      * @return string
  99.      */
  100.     public function getParams()
  101.     {
  102.         return $this->params;
  103.     }
  104.     /**
  105.      * Get params
  106.      *
  107.      * @return string
  108.      */
  109.     public function getParamsArray()
  110.     {
  111.         return json_decode($this->params);
  112.     }
  113.     /**
  114.      * Set state
  115.      *
  116.      * @param integer $state
  117.      *
  118.      * @return Coefficient
  119.      */
  120.     public function setState($state)
  121.     {
  122.         $this->state $state;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get state
  127.      *
  128.      * @return integer
  129.      */
  130.     public function getState()
  131.     {
  132.         return $this->state;
  133.     }
  134.     /**
  135.      * Set program
  136.      *
  137.      * @param Program $program
  138.      *
  139.      * @return Coefficient
  140.      */
  141.     public function setProgram(Program $program)
  142.     {
  143.         $this->program $program;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get program
  148.      *
  149.      * @return Program
  150.      */
  151.     public function getProgram()
  152.     {
  153.         return $this->program;
  154.     }
  155. }