<?php
namespace InsuranceBundle\Entity;
/**
* Coefficient
*/
class Coefficient
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $title;
/**
* @var integer
*/
private $type;
/**
* @var string
*/
private $params;
/**
* @var integer
*/
private $state;
/** * @var Program */ private $program;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set title
*
* @param string $title
*
* @return Coefficient
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set type
*
* @param integer $type
*
* @return Coefficient
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return integer
*/
public function getType()
{
return $this->type;
}
/**
* Set params
*
* @param string $params
*
* @return Coefficient
*/
public function setParams($params)
{
$this->params = $params;
return $this;
}
/**
* Get params
*
* @return string
*/
public function getParams()
{
return $this->params;
}
/**
* Get params
*
* @return string
*/
public function getParamsArray()
{
return json_decode($this->params);
}
/**
* Set state
*
* @param integer $state
*
* @return Coefficient
*/
public function setState($state)
{
$this->state = $state;
return $this;
}
/**
* Get state
*
* @return integer
*/
public function getState()
{
return $this->state;
}
/** * Set program * * @param Program $program * * @return Coefficient */ public function setProgram(Program $program)
{
$this->program = $program;
return $this;
}
/** * Get program * * @return Program */ public function getProgram()
{
return $this->program;
}
}