| 1 | <?php |
||
| 18 | class PollsAnswer extends Entity |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Fields that can be mass assigned using newEntity() or patchEntity(). |
||
| 23 | * |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $_accessible = [ |
||
| 27 | '*' => true, |
||
| 28 | 'id' => false |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the percentage of the answer's vote relative to the total of vote. |
||
| 33 | * |
||
| 34 | * @return int |
||
| 35 | */ |
||
| 36 | protected function _getPercentage() |
||
| 40 | } |
||
| 41 |