| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class XAxis extends Scale |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var float |
||
| 16 | */ |
||
| 17 | private $categoryPercentage; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var float |
||
| 21 | */ |
||
| 22 | private $barPercentage; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return float |
||
| 26 | */ |
||
| 27 | public function getCategoryPercentage() |
||
| 28 | { |
||
| 29 | return $this->categoryPercentage; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param float $categoryPercentage |
||
| 34 | * |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function setCategoryPercentage($categoryPercentage) |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return float |
||
| 46 | */ |
||
| 47 | public function getBarPercentage() |
||
| 48 | { |
||
| 49 | return $this->barPercentage; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param float $barPercentage |
||
| 54 | * |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | public function setBarPercentage($barPercentage) |
||
| 58 | { |
||
| 59 | $this->barPercentage = floatval($barPercentage); |
||
| 60 | |||
| 61 | return $this; |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | public function jsonSerialize() |
||
| 70 | } |
||
| 71 | } |
||
| 72 |