| Total Complexity | 7 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class Scales implements ArraySerializableInterface, JsonSerializable |
||
| 18 | { |
||
| 19 | use ArraySerializable; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var XAxisCollection |
||
| 23 | */ |
||
| 24 | private $xAxes; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var YAxisCollection |
||
| 28 | */ |
||
| 29 | private $yAxes; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return XAxis |
||
| 33 | */ |
||
| 34 | public function createXAxis() |
||
| 35 | { |
||
| 36 | return new XAxis(); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return YAxis |
||
| 41 | */ |
||
| 42 | public function createYAxis() |
||
| 43 | { |
||
| 44 | return new YAxis(); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return XAxisCollection |
||
| 49 | */ |
||
| 50 | public function getXAxes() |
||
| 51 | { |
||
| 52 | if (is_null($this->xAxes)) { |
||
| 53 | $this->xAxes = new XAxisCollection(); |
||
| 54 | } |
||
| 55 | |||
| 56 | return $this->xAxes; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return YAxisCollection |
||
| 61 | */ |
||
| 62 | public function getYAxes() |
||
| 63 | { |
||
| 64 | if (is_null($this->yAxes)) { |
||
| 65 | $this->yAxes = new YAxisCollection(); |
||
| 66 | } |
||
| 67 | |||
| 68 | return $this->yAxes; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return array |
||
| 73 | */ |
||
| 74 | public function jsonSerialize() |
||
| 77 | } |
||
| 78 | } |
||
| 79 |