@@ -11,90 +11,90 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class PieOptions extends Options |
| 13 | 13 | { |
| 14 | - /** |
|
| 15 | - * @var int |
|
| 16 | - */ |
|
| 17 | - protected $cutoutPercentage; |
|
| 18 | - |
|
| 19 | - /** |
|
| 20 | - * @var float |
|
| 21 | - */ |
|
| 22 | - protected $rotation; |
|
| 23 | - |
|
| 24 | - /** |
|
| 25 | - * @var float |
|
| 26 | - */ |
|
| 27 | - protected $circumference; |
|
| 28 | - |
|
| 29 | - /** |
|
| 30 | - * @return Animation |
|
| 31 | - */ |
|
| 32 | - public function getAnimation() |
|
| 33 | - { |
|
| 34 | - if (is_null($this->animation)) { |
|
| 35 | - $this->animation = new PieAnimation(); |
|
| 36 | - } |
|
| 37 | - |
|
| 38 | - return $this->animation; |
|
| 39 | - } |
|
| 40 | - |
|
| 41 | - /** |
|
| 42 | - * @return int |
|
| 43 | - */ |
|
| 44 | - public function getCutoutPercentage() |
|
| 45 | - { |
|
| 46 | - return $this->cutoutPercentage; |
|
| 47 | - } |
|
| 48 | - |
|
| 49 | - /** |
|
| 50 | - * @param int $cutoutPercentage |
|
| 51 | - * |
|
| 52 | - * @return $this |
|
| 53 | - */ |
|
| 54 | - public function setCutoutPercentage($cutoutPercentage) |
|
| 55 | - { |
|
| 56 | - $this->cutoutPercentage = $cutoutPercentage; |
|
| 57 | - |
|
| 58 | - return $this; |
|
| 59 | - } |
|
| 60 | - |
|
| 61 | - /** |
|
| 62 | - * @return float |
|
| 63 | - */ |
|
| 64 | - public function getRotation() |
|
| 65 | - { |
|
| 66 | - return $this->rotation; |
|
| 67 | - } |
|
| 68 | - |
|
| 69 | - /** |
|
| 70 | - * @param float $rotation |
|
| 71 | - * |
|
| 72 | - * @return $this |
|
| 73 | - */ |
|
| 74 | - public function setRotation($rotation) |
|
| 75 | - { |
|
| 76 | - $this->rotation = $rotation; |
|
| 77 | - |
|
| 78 | - return $this; |
|
| 79 | - } |
|
| 80 | - |
|
| 81 | - /** |
|
| 82 | - * @return float |
|
| 83 | - */ |
|
| 84 | - public function getCircumference() |
|
| 85 | - { |
|
| 86 | - return $this->circumference; |
|
| 87 | - } |
|
| 88 | - |
|
| 89 | - /** |
|
| 90 | - * @param float $circumference |
|
| 91 | - * |
|
| 92 | - * @return $this |
|
| 93 | - */ |
|
| 94 | - public function setCircumference($circumference) |
|
| 95 | - { |
|
| 96 | - $this->circumference = $circumference; |
|
| 97 | - |
|
| 98 | - return $this; |
|
| 99 | - } |
|
| 14 | + /** |
|
| 15 | + * @var int |
|
| 16 | + */ |
|
| 17 | + protected $cutoutPercentage; |
|
| 18 | + |
|
| 19 | + /** |
|
| 20 | + * @var float |
|
| 21 | + */ |
|
| 22 | + protected $rotation; |
|
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * @var float |
|
| 26 | + */ |
|
| 27 | + protected $circumference; |
|
| 28 | + |
|
| 29 | + /** |
|
| 30 | + * @return Animation |
|
| 31 | + */ |
|
| 32 | + public function getAnimation() |
|
| 33 | + { |
|
| 34 | + if (is_null($this->animation)) { |
|
| 35 | + $this->animation = new PieAnimation(); |
|
| 36 | + } |
|
| 37 | + |
|
| 38 | + return $this->animation; |
|
| 39 | + } |
|
| 40 | + |
|
| 41 | + /** |
|
| 42 | + * @return int |
|
| 43 | + */ |
|
| 44 | + public function getCutoutPercentage() |
|
| 45 | + { |
|
| 46 | + return $this->cutoutPercentage; |
|
| 47 | + } |
|
| 48 | + |
|
| 49 | + /** |
|
| 50 | + * @param int $cutoutPercentage |
|
| 51 | + * |
|
| 52 | + * @return $this |
|
| 53 | + */ |
|
| 54 | + public function setCutoutPercentage($cutoutPercentage) |
|
| 55 | + { |
|
| 56 | + $this->cutoutPercentage = $cutoutPercentage; |
|
| 57 | + |
|
| 58 | + return $this; |
|
| 59 | + } |
|
| 60 | + |
|
| 61 | + /** |
|
| 62 | + * @return float |
|
| 63 | + */ |
|
| 64 | + public function getRotation() |
|
| 65 | + { |
|
| 66 | + return $this->rotation; |
|
| 67 | + } |
|
| 68 | + |
|
| 69 | + /** |
|
| 70 | + * @param float $rotation |
|
| 71 | + * |
|
| 72 | + * @return $this |
|
| 73 | + */ |
|
| 74 | + public function setRotation($rotation) |
|
| 75 | + { |
|
| 76 | + $this->rotation = $rotation; |
|
| 77 | + |
|
| 78 | + return $this; |
|
| 79 | + } |
|
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * @return float |
|
| 83 | + */ |
|
| 84 | + public function getCircumference() |
|
| 85 | + { |
|
| 86 | + return $this->circumference; |
|
| 87 | + } |
|
| 88 | + |
|
| 89 | + /** |
|
| 90 | + * @param float $circumference |
|
| 91 | + * |
|
| 92 | + * @return $this |
|
| 93 | + */ |
|
| 94 | + public function setCircumference($circumference) |
|
| 95 | + { |
|
| 96 | + $this->circumference = $circumference; |
|
| 97 | + |
|
| 98 | + return $this; |
|
| 99 | + } |
|
| 100 | 100 | } |
@@ -13,113 +13,113 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class Animation implements ArraySerializableInterface, \JsonSerializable |
| 15 | 15 | { |
| 16 | - use ArraySerializable; |
|
| 17 | - |
|
| 18 | - /** |
|
| 19 | - * @var int |
|
| 20 | - */ |
|
| 21 | - private $duration; |
|
| 22 | - |
|
| 23 | - /** |
|
| 24 | - * @var string |
|
| 25 | - */ |
|
| 26 | - private $easing; |
|
| 27 | - |
|
| 28 | - /** |
|
| 29 | - * @var Expr |
|
| 30 | - */ |
|
| 31 | - private $onProgress; |
|
| 32 | - |
|
| 33 | - /** |
|
| 34 | - * @var Expr |
|
| 35 | - */ |
|
| 36 | - private $onComplete; |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * @return int |
|
| 40 | - */ |
|
| 41 | - public function getDuration() |
|
| 42 | - { |
|
| 43 | - return $this->duration; |
|
| 44 | - } |
|
| 45 | - |
|
| 46 | - /** |
|
| 47 | - * @param int $duration |
|
| 48 | - * |
|
| 49 | - * @return $this |
|
| 50 | - */ |
|
| 51 | - public function setDuration($duration) |
|
| 52 | - { |
|
| 53 | - $this->duration = $duration; |
|
| 54 | - |
|
| 55 | - return $this; |
|
| 56 | - } |
|
| 57 | - |
|
| 58 | - /** |
|
| 59 | - * @return string |
|
| 60 | - */ |
|
| 61 | - public function getEasing() |
|
| 62 | - { |
|
| 63 | - return $this->easing; |
|
| 64 | - } |
|
| 65 | - |
|
| 66 | - /** |
|
| 67 | - * @param string $easing |
|
| 68 | - * |
|
| 69 | - * @return $this |
|
| 70 | - */ |
|
| 71 | - public function setEasing($easing) |
|
| 72 | - { |
|
| 73 | - $this->easing = $easing; |
|
| 74 | - |
|
| 75 | - return $this; |
|
| 76 | - } |
|
| 77 | - |
|
| 78 | - /** |
|
| 79 | - * @return Expr |
|
| 80 | - */ |
|
| 81 | - public function getOnProgress() |
|
| 82 | - { |
|
| 83 | - return $this->onProgress; |
|
| 84 | - } |
|
| 85 | - |
|
| 86 | - /** |
|
| 87 | - * @param string $onProgress |
|
| 88 | - * |
|
| 89 | - * @return $this |
|
| 90 | - */ |
|
| 91 | - public function setOnProgress($onProgress) |
|
| 92 | - { |
|
| 93 | - $this->onProgress = new Expr(strval($onProgress)); |
|
| 94 | - |
|
| 95 | - return $this; |
|
| 96 | - } |
|
| 97 | - |
|
| 98 | - /** |
|
| 99 | - * @return Expr |
|
| 100 | - */ |
|
| 101 | - public function getOnComplete() |
|
| 102 | - { |
|
| 103 | - return $this->onComplete; |
|
| 104 | - } |
|
| 105 | - |
|
| 106 | - /** |
|
| 107 | - * @param string $onComplete |
|
| 108 | - * |
|
| 109 | - * @return $this |
|
| 110 | - */ |
|
| 111 | - public function setOnComplete($onComplete) |
|
| 112 | - { |
|
| 113 | - $this->onComplete = new Expr(strval($onComplete)); |
|
| 114 | - |
|
| 115 | - return $this; |
|
| 116 | - } |
|
| 117 | - |
|
| 118 | - /** |
|
| 119 | - * @return string |
|
| 120 | - */ |
|
| 121 | - public function jsonSerialize() |
|
| 122 | - { |
|
| 123 | - return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 124 | - } |
|
| 16 | + use ArraySerializable; |
|
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * @var int |
|
| 20 | + */ |
|
| 21 | + private $duration; |
|
| 22 | + |
|
| 23 | + /** |
|
| 24 | + * @var string |
|
| 25 | + */ |
|
| 26 | + private $easing; |
|
| 27 | + |
|
| 28 | + /** |
|
| 29 | + * @var Expr |
|
| 30 | + */ |
|
| 31 | + private $onProgress; |
|
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * @var Expr |
|
| 35 | + */ |
|
| 36 | + private $onComplete; |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * @return int |
|
| 40 | + */ |
|
| 41 | + public function getDuration() |
|
| 42 | + { |
|
| 43 | + return $this->duration; |
|
| 44 | + } |
|
| 45 | + |
|
| 46 | + /** |
|
| 47 | + * @param int $duration |
|
| 48 | + * |
|
| 49 | + * @return $this |
|
| 50 | + */ |
|
| 51 | + public function setDuration($duration) |
|
| 52 | + { |
|
| 53 | + $this->duration = $duration; |
|
| 54 | + |
|
| 55 | + return $this; |
|
| 56 | + } |
|
| 57 | + |
|
| 58 | + /** |
|
| 59 | + * @return string |
|
| 60 | + */ |
|
| 61 | + public function getEasing() |
|
| 62 | + { |
|
| 63 | + return $this->easing; |
|
| 64 | + } |
|
| 65 | + |
|
| 66 | + /** |
|
| 67 | + * @param string $easing |
|
| 68 | + * |
|
| 69 | + * @return $this |
|
| 70 | + */ |
|
| 71 | + public function setEasing($easing) |
|
| 72 | + { |
|
| 73 | + $this->easing = $easing; |
|
| 74 | + |
|
| 75 | + return $this; |
|
| 76 | + } |
|
| 77 | + |
|
| 78 | + /** |
|
| 79 | + * @return Expr |
|
| 80 | + */ |
|
| 81 | + public function getOnProgress() |
|
| 82 | + { |
|
| 83 | + return $this->onProgress; |
|
| 84 | + } |
|
| 85 | + |
|
| 86 | + /** |
|
| 87 | + * @param string $onProgress |
|
| 88 | + * |
|
| 89 | + * @return $this |
|
| 90 | + */ |
|
| 91 | + public function setOnProgress($onProgress) |
|
| 92 | + { |
|
| 93 | + $this->onProgress = new Expr(strval($onProgress)); |
|
| 94 | + |
|
| 95 | + return $this; |
|
| 96 | + } |
|
| 97 | + |
|
| 98 | + /** |
|
| 99 | + * @return Expr |
|
| 100 | + */ |
|
| 101 | + public function getOnComplete() |
|
| 102 | + { |
|
| 103 | + return $this->onComplete; |
|
| 104 | + } |
|
| 105 | + |
|
| 106 | + /** |
|
| 107 | + * @param string $onComplete |
|
| 108 | + * |
|
| 109 | + * @return $this |
|
| 110 | + */ |
|
| 111 | + public function setOnComplete($onComplete) |
|
| 112 | + { |
|
| 113 | + $this->onComplete = new Expr(strval($onComplete)); |
|
| 114 | + |
|
| 115 | + return $this; |
|
| 116 | + } |
|
| 117 | + |
|
| 118 | + /** |
|
| 119 | + * @return string |
|
| 120 | + */ |
|
| 121 | + public function jsonSerialize() |
|
| 122 | + { |
|
| 123 | + return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 124 | + } |
|
| 125 | 125 | } |
@@ -13,313 +13,313 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class Callbacks implements ArraySerializableInterface, \JsonSerializable |
| 15 | 15 | { |
| 16 | - use ArraySerializable; |
|
| 17 | - |
|
| 18 | - /** |
|
| 19 | - * @var Expr |
|
| 20 | - */ |
|
| 21 | - private $beforeTitle; |
|
| 22 | - |
|
| 23 | - /** |
|
| 24 | - * @var Expr |
|
| 25 | - */ |
|
| 26 | - private $title; |
|
| 27 | - |
|
| 28 | - /** |
|
| 29 | - * @var Expr |
|
| 30 | - */ |
|
| 31 | - private $afterTitle; |
|
| 32 | - |
|
| 33 | - /** |
|
| 34 | - * @var Expr |
|
| 35 | - */ |
|
| 36 | - private $beforeLabel; |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * @var Expr |
|
| 40 | - */ |
|
| 41 | - private $label; |
|
| 42 | - |
|
| 43 | - /** |
|
| 44 | - * @var Expr |
|
| 45 | - */ |
|
| 46 | - private $labelColor; |
|
| 47 | - |
|
| 48 | - /** |
|
| 49 | - * @var Expr |
|
| 50 | - */ |
|
| 51 | - private $afterLabel; |
|
| 52 | - |
|
| 53 | - /** |
|
| 54 | - * @var Expr |
|
| 55 | - */ |
|
| 56 | - private $afterBody; |
|
| 57 | - |
|
| 58 | - /** |
|
| 59 | - * @var Expr |
|
| 60 | - */ |
|
| 61 | - private $beforeFooter; |
|
| 62 | - |
|
| 63 | - /** |
|
| 64 | - * @var Expr |
|
| 65 | - */ |
|
| 66 | - private $footer; |
|
| 67 | - |
|
| 68 | - /** |
|
| 69 | - * @var Expr |
|
| 70 | - */ |
|
| 71 | - private $afterFooter; |
|
| 72 | - |
|
| 73 | - /** |
|
| 74 | - * @var Expr |
|
| 75 | - */ |
|
| 76 | - private $dataPoints; |
|
| 77 | - |
|
| 78 | - /** |
|
| 79 | - * @return Expr |
|
| 80 | - */ |
|
| 81 | - public function getBeforeTitle() |
|
| 82 | - { |
|
| 83 | - return $this->beforeTitle; |
|
| 84 | - } |
|
| 85 | - |
|
| 86 | - /** |
|
| 87 | - * @param string $beforeTitle |
|
| 88 | - * |
|
| 89 | - * @return $this |
|
| 90 | - */ |
|
| 91 | - public function setBeforeTitle($beforeTitle) |
|
| 92 | - { |
|
| 93 | - $this->beforeTitle = new Expr(strval($beforeTitle)); |
|
| 94 | - |
|
| 95 | - return $this; |
|
| 96 | - } |
|
| 97 | - |
|
| 98 | - /** |
|
| 99 | - * @return Expr |
|
| 100 | - */ |
|
| 101 | - public function getTitle() |
|
| 102 | - { |
|
| 103 | - return $this->title; |
|
| 104 | - } |
|
| 105 | - |
|
| 106 | - /** |
|
| 107 | - * @param string $title |
|
| 108 | - * |
|
| 109 | - * @return $this |
|
| 110 | - */ |
|
| 111 | - public function setTitle($title) |
|
| 112 | - { |
|
| 113 | - $this->title = new Expr(strval($title)); |
|
| 114 | - |
|
| 115 | - return $this; |
|
| 116 | - } |
|
| 117 | - |
|
| 118 | - /** |
|
| 119 | - * @return Expr |
|
| 120 | - */ |
|
| 121 | - public function getAfterTitle() |
|
| 122 | - { |
|
| 123 | - return $this->afterTitle; |
|
| 124 | - } |
|
| 125 | - |
|
| 126 | - /** |
|
| 127 | - * @param string $afterTitle |
|
| 128 | - * |
|
| 129 | - * @return $this |
|
| 130 | - */ |
|
| 131 | - public function setAfterTitle($afterTitle) |
|
| 132 | - { |
|
| 133 | - $this->afterTitle = new Expr(strval($afterTitle)); |
|
| 134 | - |
|
| 135 | - return $this; |
|
| 136 | - } |
|
| 137 | - |
|
| 138 | - /** |
|
| 139 | - * @return Expr |
|
| 140 | - */ |
|
| 141 | - public function getBeforeLabel() |
|
| 142 | - { |
|
| 143 | - return $this->beforeLabel; |
|
| 144 | - } |
|
| 145 | - |
|
| 146 | - /** |
|
| 147 | - * @param string $beforeLabel |
|
| 148 | - * |
|
| 149 | - * @return $this |
|
| 150 | - */ |
|
| 151 | - public function setBeforeLabel($beforeLabel) |
|
| 152 | - { |
|
| 153 | - $this->beforeLabel = new Expr(strval($beforeLabel)); |
|
| 154 | - |
|
| 155 | - return $this; |
|
| 156 | - } |
|
| 157 | - |
|
| 158 | - /** |
|
| 159 | - * @return Expr |
|
| 160 | - */ |
|
| 161 | - public function getLabel() |
|
| 162 | - { |
|
| 163 | - return $this->label; |
|
| 164 | - } |
|
| 165 | - |
|
| 166 | - /** |
|
| 167 | - * @param string $label |
|
| 168 | - * |
|
| 169 | - * @return $this |
|
| 170 | - */ |
|
| 171 | - public function setLabel($label) |
|
| 172 | - { |
|
| 173 | - $this->label = new Expr(strval($label)); |
|
| 174 | - |
|
| 175 | - return $this; |
|
| 176 | - } |
|
| 177 | - |
|
| 178 | - /** |
|
| 179 | - * @return Expr |
|
| 180 | - */ |
|
| 181 | - public function getLabelColor() |
|
| 182 | - { |
|
| 183 | - return $this->labelColor; |
|
| 184 | - } |
|
| 185 | - |
|
| 186 | - /** |
|
| 187 | - * @param string $labelColor |
|
| 188 | - * |
|
| 189 | - * @return $this |
|
| 190 | - */ |
|
| 191 | - public function setLabelColor($labelColor) |
|
| 192 | - { |
|
| 193 | - $this->labelColor = new Expr(strval($labelColor)); |
|
| 194 | - |
|
| 195 | - return $this; |
|
| 196 | - } |
|
| 197 | - |
|
| 198 | - /** |
|
| 199 | - * @return Expr |
|
| 200 | - */ |
|
| 201 | - public function getAfterLabel() |
|
| 202 | - { |
|
| 203 | - return $this->afterLabel; |
|
| 204 | - } |
|
| 205 | - |
|
| 206 | - /** |
|
| 207 | - * @param string $afterLabel |
|
| 208 | - * |
|
| 209 | - * @return $this |
|
| 210 | - */ |
|
| 211 | - public function setAfterLabel($afterLabel) |
|
| 212 | - { |
|
| 213 | - $this->afterLabel = new Expr(strval($afterLabel)); |
|
| 214 | - |
|
| 215 | - return $this; |
|
| 216 | - } |
|
| 217 | - |
|
| 218 | - /** |
|
| 219 | - * @return Expr |
|
| 220 | - */ |
|
| 221 | - public function getAfterBody() |
|
| 222 | - { |
|
| 223 | - return $this->afterBody; |
|
| 224 | - } |
|
| 225 | - |
|
| 226 | - /** |
|
| 227 | - * @param string $afterBody |
|
| 228 | - * |
|
| 229 | - * @return $this |
|
| 230 | - */ |
|
| 231 | - public function setAfterBody($afterBody) |
|
| 232 | - { |
|
| 233 | - $this->afterBody = new Expr(strval($afterBody)); |
|
| 234 | - |
|
| 235 | - return $this; |
|
| 236 | - } |
|
| 237 | - |
|
| 238 | - /** |
|
| 239 | - * @return Expr |
|
| 240 | - */ |
|
| 241 | - public function getBeforeFooter() |
|
| 242 | - { |
|
| 243 | - return $this->beforeFooter; |
|
| 244 | - } |
|
| 245 | - |
|
| 246 | - /** |
|
| 247 | - * @param string $beforeFooter |
|
| 248 | - * |
|
| 249 | - * @return $this |
|
| 250 | - */ |
|
| 251 | - public function setBeforeFooter($beforeFooter) |
|
| 252 | - { |
|
| 253 | - $this->beforeFooter = new Expr(strval($beforeFooter)); |
|
| 254 | - |
|
| 255 | - return $this; |
|
| 256 | - } |
|
| 257 | - |
|
| 258 | - /** |
|
| 259 | - * @return Expr |
|
| 260 | - */ |
|
| 261 | - public function getFooter() |
|
| 262 | - { |
|
| 263 | - return $this->footer; |
|
| 264 | - } |
|
| 265 | - |
|
| 266 | - /** |
|
| 267 | - * @param string $footer |
|
| 268 | - * |
|
| 269 | - * @return $this |
|
| 270 | - */ |
|
| 271 | - public function setFooter($footer) |
|
| 272 | - { |
|
| 273 | - $this->footer = new Expr(strval($footer)); |
|
| 274 | - |
|
| 275 | - return $this; |
|
| 276 | - } |
|
| 277 | - |
|
| 278 | - /** |
|
| 279 | - * @return Expr |
|
| 280 | - */ |
|
| 281 | - public function getAfterFooter() |
|
| 282 | - { |
|
| 283 | - return $this->afterFooter; |
|
| 284 | - } |
|
| 285 | - |
|
| 286 | - /** |
|
| 287 | - * @param string $afterFooter |
|
| 288 | - * |
|
| 289 | - * @return $this |
|
| 290 | - */ |
|
| 291 | - public function setAfterFooter($afterFooter) |
|
| 292 | - { |
|
| 293 | - $this->afterFooter = new Expr(strval($afterFooter)); |
|
| 294 | - |
|
| 295 | - return $this; |
|
| 296 | - } |
|
| 297 | - |
|
| 298 | - /** |
|
| 299 | - * @return Expr |
|
| 300 | - */ |
|
| 301 | - public function getDataPoints() |
|
| 302 | - { |
|
| 303 | - return $this->dataPoints; |
|
| 304 | - } |
|
| 305 | - |
|
| 306 | - /** |
|
| 307 | - * @param string $dataPoints |
|
| 308 | - * |
|
| 309 | - * @return $this |
|
| 310 | - */ |
|
| 311 | - public function setDataPoints($dataPoints) |
|
| 312 | - { |
|
| 313 | - $this->dataPoints = new Expr(strval($dataPoints)); |
|
| 314 | - |
|
| 315 | - return $this; |
|
| 316 | - } |
|
| 317 | - |
|
| 318 | - /** |
|
| 319 | - * @return string |
|
| 320 | - */ |
|
| 321 | - public function jsonSerialize() |
|
| 322 | - { |
|
| 323 | - return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 324 | - } |
|
| 16 | + use ArraySerializable; |
|
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * @var Expr |
|
| 20 | + */ |
|
| 21 | + private $beforeTitle; |
|
| 22 | + |
|
| 23 | + /** |
|
| 24 | + * @var Expr |
|
| 25 | + */ |
|
| 26 | + private $title; |
|
| 27 | + |
|
| 28 | + /** |
|
| 29 | + * @var Expr |
|
| 30 | + */ |
|
| 31 | + private $afterTitle; |
|
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * @var Expr |
|
| 35 | + */ |
|
| 36 | + private $beforeLabel; |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * @var Expr |
|
| 40 | + */ |
|
| 41 | + private $label; |
|
| 42 | + |
|
| 43 | + /** |
|
| 44 | + * @var Expr |
|
| 45 | + */ |
|
| 46 | + private $labelColor; |
|
| 47 | + |
|
| 48 | + /** |
|
| 49 | + * @var Expr |
|
| 50 | + */ |
|
| 51 | + private $afterLabel; |
|
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * @var Expr |
|
| 55 | + */ |
|
| 56 | + private $afterBody; |
|
| 57 | + |
|
| 58 | + /** |
|
| 59 | + * @var Expr |
|
| 60 | + */ |
|
| 61 | + private $beforeFooter; |
|
| 62 | + |
|
| 63 | + /** |
|
| 64 | + * @var Expr |
|
| 65 | + */ |
|
| 66 | + private $footer; |
|
| 67 | + |
|
| 68 | + /** |
|
| 69 | + * @var Expr |
|
| 70 | + */ |
|
| 71 | + private $afterFooter; |
|
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @var Expr |
|
| 75 | + */ |
|
| 76 | + private $dataPoints; |
|
| 77 | + |
|
| 78 | + /** |
|
| 79 | + * @return Expr |
|
| 80 | + */ |
|
| 81 | + public function getBeforeTitle() |
|
| 82 | + { |
|
| 83 | + return $this->beforeTitle; |
|
| 84 | + } |
|
| 85 | + |
|
| 86 | + /** |
|
| 87 | + * @param string $beforeTitle |
|
| 88 | + * |
|
| 89 | + * @return $this |
|
| 90 | + */ |
|
| 91 | + public function setBeforeTitle($beforeTitle) |
|
| 92 | + { |
|
| 93 | + $this->beforeTitle = new Expr(strval($beforeTitle)); |
|
| 94 | + |
|
| 95 | + return $this; |
|
| 96 | + } |
|
| 97 | + |
|
| 98 | + /** |
|
| 99 | + * @return Expr |
|
| 100 | + */ |
|
| 101 | + public function getTitle() |
|
| 102 | + { |
|
| 103 | + return $this->title; |
|
| 104 | + } |
|
| 105 | + |
|
| 106 | + /** |
|
| 107 | + * @param string $title |
|
| 108 | + * |
|
| 109 | + * @return $this |
|
| 110 | + */ |
|
| 111 | + public function setTitle($title) |
|
| 112 | + { |
|
| 113 | + $this->title = new Expr(strval($title)); |
|
| 114 | + |
|
| 115 | + return $this; |
|
| 116 | + } |
|
| 117 | + |
|
| 118 | + /** |
|
| 119 | + * @return Expr |
|
| 120 | + */ |
|
| 121 | + public function getAfterTitle() |
|
| 122 | + { |
|
| 123 | + return $this->afterTitle; |
|
| 124 | + } |
|
| 125 | + |
|
| 126 | + /** |
|
| 127 | + * @param string $afterTitle |
|
| 128 | + * |
|
| 129 | + * @return $this |
|
| 130 | + */ |
|
| 131 | + public function setAfterTitle($afterTitle) |
|
| 132 | + { |
|
| 133 | + $this->afterTitle = new Expr(strval($afterTitle)); |
|
| 134 | + |
|
| 135 | + return $this; |
|
| 136 | + } |
|
| 137 | + |
|
| 138 | + /** |
|
| 139 | + * @return Expr |
|
| 140 | + */ |
|
| 141 | + public function getBeforeLabel() |
|
| 142 | + { |
|
| 143 | + return $this->beforeLabel; |
|
| 144 | + } |
|
| 145 | + |
|
| 146 | + /** |
|
| 147 | + * @param string $beforeLabel |
|
| 148 | + * |
|
| 149 | + * @return $this |
|
| 150 | + */ |
|
| 151 | + public function setBeforeLabel($beforeLabel) |
|
| 152 | + { |
|
| 153 | + $this->beforeLabel = new Expr(strval($beforeLabel)); |
|
| 154 | + |
|
| 155 | + return $this; |
|
| 156 | + } |
|
| 157 | + |
|
| 158 | + /** |
|
| 159 | + * @return Expr |
|
| 160 | + */ |
|
| 161 | + public function getLabel() |
|
| 162 | + { |
|
| 163 | + return $this->label; |
|
| 164 | + } |
|
| 165 | + |
|
| 166 | + /** |
|
| 167 | + * @param string $label |
|
| 168 | + * |
|
| 169 | + * @return $this |
|
| 170 | + */ |
|
| 171 | + public function setLabel($label) |
|
| 172 | + { |
|
| 173 | + $this->label = new Expr(strval($label)); |
|
| 174 | + |
|
| 175 | + return $this; |
|
| 176 | + } |
|
| 177 | + |
|
| 178 | + /** |
|
| 179 | + * @return Expr |
|
| 180 | + */ |
|
| 181 | + public function getLabelColor() |
|
| 182 | + { |
|
| 183 | + return $this->labelColor; |
|
| 184 | + } |
|
| 185 | + |
|
| 186 | + /** |
|
| 187 | + * @param string $labelColor |
|
| 188 | + * |
|
| 189 | + * @return $this |
|
| 190 | + */ |
|
| 191 | + public function setLabelColor($labelColor) |
|
| 192 | + { |
|
| 193 | + $this->labelColor = new Expr(strval($labelColor)); |
|
| 194 | + |
|
| 195 | + return $this; |
|
| 196 | + } |
|
| 197 | + |
|
| 198 | + /** |
|
| 199 | + * @return Expr |
|
| 200 | + */ |
|
| 201 | + public function getAfterLabel() |
|
| 202 | + { |
|
| 203 | + return $this->afterLabel; |
|
| 204 | + } |
|
| 205 | + |
|
| 206 | + /** |
|
| 207 | + * @param string $afterLabel |
|
| 208 | + * |
|
| 209 | + * @return $this |
|
| 210 | + */ |
|
| 211 | + public function setAfterLabel($afterLabel) |
|
| 212 | + { |
|
| 213 | + $this->afterLabel = new Expr(strval($afterLabel)); |
|
| 214 | + |
|
| 215 | + return $this; |
|
| 216 | + } |
|
| 217 | + |
|
| 218 | + /** |
|
| 219 | + * @return Expr |
|
| 220 | + */ |
|
| 221 | + public function getAfterBody() |
|
| 222 | + { |
|
| 223 | + return $this->afterBody; |
|
| 224 | + } |
|
| 225 | + |
|
| 226 | + /** |
|
| 227 | + * @param string $afterBody |
|
| 228 | + * |
|
| 229 | + * @return $this |
|
| 230 | + */ |
|
| 231 | + public function setAfterBody($afterBody) |
|
| 232 | + { |
|
| 233 | + $this->afterBody = new Expr(strval($afterBody)); |
|
| 234 | + |
|
| 235 | + return $this; |
|
| 236 | + } |
|
| 237 | + |
|
| 238 | + /** |
|
| 239 | + * @return Expr |
|
| 240 | + */ |
|
| 241 | + public function getBeforeFooter() |
|
| 242 | + { |
|
| 243 | + return $this->beforeFooter; |
|
| 244 | + } |
|
| 245 | + |
|
| 246 | + /** |
|
| 247 | + * @param string $beforeFooter |
|
| 248 | + * |
|
| 249 | + * @return $this |
|
| 250 | + */ |
|
| 251 | + public function setBeforeFooter($beforeFooter) |
|
| 252 | + { |
|
| 253 | + $this->beforeFooter = new Expr(strval($beforeFooter)); |
|
| 254 | + |
|
| 255 | + return $this; |
|
| 256 | + } |
|
| 257 | + |
|
| 258 | + /** |
|
| 259 | + * @return Expr |
|
| 260 | + */ |
|
| 261 | + public function getFooter() |
|
| 262 | + { |
|
| 263 | + return $this->footer; |
|
| 264 | + } |
|
| 265 | + |
|
| 266 | + /** |
|
| 267 | + * @param string $footer |
|
| 268 | + * |
|
| 269 | + * @return $this |
|
| 270 | + */ |
|
| 271 | + public function setFooter($footer) |
|
| 272 | + { |
|
| 273 | + $this->footer = new Expr(strval($footer)); |
|
| 274 | + |
|
| 275 | + return $this; |
|
| 276 | + } |
|
| 277 | + |
|
| 278 | + /** |
|
| 279 | + * @return Expr |
|
| 280 | + */ |
|
| 281 | + public function getAfterFooter() |
|
| 282 | + { |
|
| 283 | + return $this->afterFooter; |
|
| 284 | + } |
|
| 285 | + |
|
| 286 | + /** |
|
| 287 | + * @param string $afterFooter |
|
| 288 | + * |
|
| 289 | + * @return $this |
|
| 290 | + */ |
|
| 291 | + public function setAfterFooter($afterFooter) |
|
| 292 | + { |
|
| 293 | + $this->afterFooter = new Expr(strval($afterFooter)); |
|
| 294 | + |
|
| 295 | + return $this; |
|
| 296 | + } |
|
| 297 | + |
|
| 298 | + /** |
|
| 299 | + * @return Expr |
|
| 300 | + */ |
|
| 301 | + public function getDataPoints() |
|
| 302 | + { |
|
| 303 | + return $this->dataPoints; |
|
| 304 | + } |
|
| 305 | + |
|
| 306 | + /** |
|
| 307 | + * @param string $dataPoints |
|
| 308 | + * |
|
| 309 | + * @return $this |
|
| 310 | + */ |
|
| 311 | + public function setDataPoints($dataPoints) |
|
| 312 | + { |
|
| 313 | + $this->dataPoints = new Expr(strval($dataPoints)); |
|
| 314 | + |
|
| 315 | + return $this; |
|
| 316 | + } |
|
| 317 | + |
|
| 318 | + /** |
|
| 319 | + * @return string |
|
| 320 | + */ |
|
| 321 | + public function jsonSerialize() |
|
| 322 | + { |
|
| 323 | + return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 324 | + } |
|
| 325 | 325 | } |
@@ -11,25 +11,25 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class YAxisCollection extends ArrayAccess implements \JsonSerializable |
| 13 | 13 | { |
| 14 | - /** |
|
| 15 | - * @return array |
|
| 16 | - */ |
|
| 17 | - public function getArrayCopy() |
|
| 18 | - { |
|
| 19 | - $rows = []; |
|
| 20 | - foreach ($this->data as $row) { |
|
| 21 | - /** @var YAxis $row */ |
|
| 22 | - $rows[] = $row->getArrayCopy(); |
|
| 23 | - } |
|
| 14 | + /** |
|
| 15 | + * @return array |
|
| 16 | + */ |
|
| 17 | + public function getArrayCopy() |
|
| 18 | + { |
|
| 19 | + $rows = []; |
|
| 20 | + foreach ($this->data as $row) { |
|
| 21 | + /** @var YAxis $row */ |
|
| 22 | + $rows[] = $row->getArrayCopy(); |
|
| 23 | + } |
|
| 24 | 24 | |
| 25 | - return $rows; |
|
| 26 | - } |
|
| 25 | + return $rows; |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * @return string |
|
| 30 | - */ |
|
| 31 | - public function jsonSerialize() |
|
| 32 | - { |
|
| 33 | - return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 34 | - } |
|
| 28 | + /** |
|
| 29 | + * @return string |
|
| 30 | + */ |
|
| 31 | + public function jsonSerialize() |
|
| 32 | + { |
|
| 33 | + return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 34 | + } |
|
| 35 | 35 | } |
@@ -11,61 +11,61 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class XAxis extends Scale |
| 13 | 13 | { |
| 14 | - /** |
|
| 15 | - * @var float |
|
| 16 | - */ |
|
| 17 | - private $categoryPercentage; |
|
| 14 | + /** |
|
| 15 | + * @var float |
|
| 16 | + */ |
|
| 17 | + private $categoryPercentage; |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @var float |
|
| 21 | - */ |
|
| 22 | - private $barPercentage; |
|
| 19 | + /** |
|
| 20 | + * @var float |
|
| 21 | + */ |
|
| 22 | + private $barPercentage; |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * @return float |
|
| 26 | - */ |
|
| 27 | - public function getCategoryPercentage() |
|
| 28 | - { |
|
| 29 | - return $this->categoryPercentage; |
|
| 30 | - } |
|
| 24 | + /** |
|
| 25 | + * @return float |
|
| 26 | + */ |
|
| 27 | + public function getCategoryPercentage() |
|
| 28 | + { |
|
| 29 | + return $this->categoryPercentage; |
|
| 30 | + } |
|
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * @param float $categoryPercentage |
|
| 34 | - * |
|
| 35 | - * @return $this |
|
| 36 | - */ |
|
| 37 | - public function setCategoryPercentage($categoryPercentage) |
|
| 38 | - { |
|
| 39 | - $this->categoryPercentage = floatval($categoryPercentage); |
|
| 32 | + /** |
|
| 33 | + * @param float $categoryPercentage |
|
| 34 | + * |
|
| 35 | + * @return $this |
|
| 36 | + */ |
|
| 37 | + public function setCategoryPercentage($categoryPercentage) |
|
| 38 | + { |
|
| 39 | + $this->categoryPercentage = floatval($categoryPercentage); |
|
| 40 | 40 | |
| 41 | - return $this; |
|
| 42 | - } |
|
| 41 | + return $this; |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * @return float |
|
| 46 | - */ |
|
| 47 | - public function getBarPercentage() |
|
| 48 | - { |
|
| 49 | - return $this->barPercentage; |
|
| 50 | - } |
|
| 44 | + /** |
|
| 45 | + * @return float |
|
| 46 | + */ |
|
| 47 | + public function getBarPercentage() |
|
| 48 | + { |
|
| 49 | + return $this->barPercentage; |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * @param float $barPercentage |
|
| 54 | - * |
|
| 55 | - * @return $this |
|
| 56 | - */ |
|
| 57 | - public function setBarPercentage($barPercentage) |
|
| 58 | - { |
|
| 59 | - $this->barPercentage = floatval($barPercentage); |
|
| 52 | + /** |
|
| 53 | + * @param float $barPercentage |
|
| 54 | + * |
|
| 55 | + * @return $this |
|
| 56 | + */ |
|
| 57 | + public function setBarPercentage($barPercentage) |
|
| 58 | + { |
|
| 59 | + $this->barPercentage = floatval($barPercentage); |
|
| 60 | 60 | |
| 61 | - return $this; |
|
| 62 | - } |
|
| 61 | + return $this; |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | - /** |
|
| 65 | - * @return string |
|
| 66 | - */ |
|
| 67 | - public function jsonSerialize() |
|
| 68 | - { |
|
| 69 | - return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 70 | - } |
|
| 64 | + /** |
|
| 65 | + * @return string |
|
| 66 | + */ |
|
| 67 | + public function jsonSerialize() |
|
| 68 | + { |
|
| 69 | + return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 70 | + } |
|
| 71 | 71 | } |
@@ -11,25 +11,25 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class XAxisCollection extends ArrayAccess implements \JsonSerializable |
| 13 | 13 | { |
| 14 | - /** |
|
| 15 | - * @return array |
|
| 16 | - */ |
|
| 17 | - public function getArrayCopy() |
|
| 18 | - { |
|
| 19 | - $rows = []; |
|
| 20 | - foreach ($this->data as $row) { |
|
| 21 | - /** @var XAxis $row */ |
|
| 22 | - $rows[] = $row->getArrayCopy(); |
|
| 23 | - } |
|
| 14 | + /** |
|
| 15 | + * @return array |
|
| 16 | + */ |
|
| 17 | + public function getArrayCopy() |
|
| 18 | + { |
|
| 19 | + $rows = []; |
|
| 20 | + foreach ($this->data as $row) { |
|
| 21 | + /** @var XAxis $row */ |
|
| 22 | + $rows[] = $row->getArrayCopy(); |
|
| 23 | + } |
|
| 24 | 24 | |
| 25 | - return $rows; |
|
| 26 | - } |
|
| 25 | + return $rows; |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * @return string |
|
| 30 | - */ |
|
| 31 | - public function jsonSerialize() |
|
| 32 | - { |
|
| 33 | - return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 34 | - } |
|
| 28 | + /** |
|
| 29 | + * @return string |
|
| 30 | + */ |
|
| 31 | + public function jsonSerialize() |
|
| 32 | + { |
|
| 33 | + return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 34 | + } |
|
| 35 | 35 | } |
@@ -12,113 +12,113 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class Padding implements ArraySerializableInterface, \JsonSerializable |
| 14 | 14 | { |
| 15 | - use ArraySerializable; |
|
| 16 | - |
|
| 17 | - /** |
|
| 18 | - * @var int |
|
| 19 | - */ |
|
| 20 | - private $bottom; |
|
| 21 | - |
|
| 22 | - /** |
|
| 23 | - * @var int |
|
| 24 | - */ |
|
| 25 | - private $left; |
|
| 26 | - |
|
| 27 | - /** |
|
| 28 | - * @var int |
|
| 29 | - */ |
|
| 30 | - private $right; |
|
| 31 | - |
|
| 32 | - /** |
|
| 33 | - * @var int |
|
| 34 | - */ |
|
| 35 | - private $top; |
|
| 36 | - |
|
| 37 | - /** |
|
| 38 | - * @return int |
|
| 39 | - */ |
|
| 40 | - public function getBottom() |
|
| 41 | - { |
|
| 42 | - return $this->bottom; |
|
| 43 | - } |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @param int $bottom |
|
| 47 | - * |
|
| 48 | - * @return $this |
|
| 49 | - */ |
|
| 50 | - public function setBottom($bottom) |
|
| 51 | - { |
|
| 52 | - $this->bottom = intval($bottom); |
|
| 53 | - |
|
| 54 | - return $this; |
|
| 55 | - } |
|
| 56 | - |
|
| 57 | - /** |
|
| 58 | - * @return int |
|
| 59 | - */ |
|
| 60 | - public function getLeft() |
|
| 61 | - { |
|
| 62 | - return $this->left; |
|
| 63 | - } |
|
| 64 | - |
|
| 65 | - /** |
|
| 66 | - * @param int $left |
|
| 67 | - * |
|
| 68 | - * @return $this |
|
| 69 | - */ |
|
| 70 | - public function setLeft($left) |
|
| 71 | - { |
|
| 72 | - $this->left = intval($left); |
|
| 73 | - |
|
| 74 | - return $this; |
|
| 75 | - } |
|
| 76 | - |
|
| 77 | - /** |
|
| 78 | - * @return int |
|
| 79 | - */ |
|
| 80 | - public function getRight() |
|
| 81 | - { |
|
| 82 | - return $this->right; |
|
| 83 | - } |
|
| 84 | - |
|
| 85 | - /** |
|
| 86 | - * @param int $right |
|
| 87 | - * |
|
| 88 | - * @return $this |
|
| 89 | - */ |
|
| 90 | - public function setRight($right) |
|
| 91 | - { |
|
| 92 | - $this->right = intval($right); |
|
| 93 | - |
|
| 94 | - return $this; |
|
| 95 | - } |
|
| 96 | - |
|
| 97 | - /** |
|
| 98 | - * @return int |
|
| 99 | - */ |
|
| 100 | - public function getTop() |
|
| 101 | - { |
|
| 102 | - return $this->top; |
|
| 103 | - } |
|
| 104 | - |
|
| 105 | - /** |
|
| 106 | - * @param int $top |
|
| 107 | - * |
|
| 108 | - * @return $this |
|
| 109 | - */ |
|
| 110 | - public function setTop($top) |
|
| 111 | - { |
|
| 112 | - $this->top = intval($top); |
|
| 113 | - |
|
| 114 | - return $this; |
|
| 115 | - } |
|
| 116 | - |
|
| 117 | - /** |
|
| 118 | - * @return string |
|
| 119 | - */ |
|
| 120 | - public function jsonSerialize() |
|
| 121 | - { |
|
| 122 | - return Json::encode($this->getArrayCopy()); |
|
| 123 | - } |
|
| 15 | + use ArraySerializable; |
|
| 16 | + |
|
| 17 | + /** |
|
| 18 | + * @var int |
|
| 19 | + */ |
|
| 20 | + private $bottom; |
|
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * @var int |
|
| 24 | + */ |
|
| 25 | + private $left; |
|
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * @var int |
|
| 29 | + */ |
|
| 30 | + private $right; |
|
| 31 | + |
|
| 32 | + /** |
|
| 33 | + * @var int |
|
| 34 | + */ |
|
| 35 | + private $top; |
|
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * @return int |
|
| 39 | + */ |
|
| 40 | + public function getBottom() |
|
| 41 | + { |
|
| 42 | + return $this->bottom; |
|
| 43 | + } |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @param int $bottom |
|
| 47 | + * |
|
| 48 | + * @return $this |
|
| 49 | + */ |
|
| 50 | + public function setBottom($bottom) |
|
| 51 | + { |
|
| 52 | + $this->bottom = intval($bottom); |
|
| 53 | + |
|
| 54 | + return $this; |
|
| 55 | + } |
|
| 56 | + |
|
| 57 | + /** |
|
| 58 | + * @return int |
|
| 59 | + */ |
|
| 60 | + public function getLeft() |
|
| 61 | + { |
|
| 62 | + return $this->left; |
|
| 63 | + } |
|
| 64 | + |
|
| 65 | + /** |
|
| 66 | + * @param int $left |
|
| 67 | + * |
|
| 68 | + * @return $this |
|
| 69 | + */ |
|
| 70 | + public function setLeft($left) |
|
| 71 | + { |
|
| 72 | + $this->left = intval($left); |
|
| 73 | + |
|
| 74 | + return $this; |
|
| 75 | + } |
|
| 76 | + |
|
| 77 | + /** |
|
| 78 | + * @return int |
|
| 79 | + */ |
|
| 80 | + public function getRight() |
|
| 81 | + { |
|
| 82 | + return $this->right; |
|
| 83 | + } |
|
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * @param int $right |
|
| 87 | + * |
|
| 88 | + * @return $this |
|
| 89 | + */ |
|
| 90 | + public function setRight($right) |
|
| 91 | + { |
|
| 92 | + $this->right = intval($right); |
|
| 93 | + |
|
| 94 | + return $this; |
|
| 95 | + } |
|
| 96 | + |
|
| 97 | + /** |
|
| 98 | + * @return int |
|
| 99 | + */ |
|
| 100 | + public function getTop() |
|
| 101 | + { |
|
| 102 | + return $this->top; |
|
| 103 | + } |
|
| 104 | + |
|
| 105 | + /** |
|
| 106 | + * @param int $top |
|
| 107 | + * |
|
| 108 | + * @return $this |
|
| 109 | + */ |
|
| 110 | + public function setTop($top) |
|
| 111 | + { |
|
| 112 | + $this->top = intval($top); |
|
| 113 | + |
|
| 114 | + return $this; |
|
| 115 | + } |
|
| 116 | + |
|
| 117 | + /** |
|
| 118 | + * @return string |
|
| 119 | + */ |
|
| 120 | + public function jsonSerialize() |
|
| 121 | + { |
|
| 122 | + return Json::encode($this->getArrayCopy()); |
|
| 123 | + } |
|
| 124 | 124 | } |
@@ -16,63 +16,63 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | class Scales implements ArraySerializableInterface, \JsonSerializable |
| 18 | 18 | { |
| 19 | - use ArraySerializable; |
|
| 19 | + use ArraySerializable; |
|
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * @var XAxisCollection |
|
| 23 | - */ |
|
| 24 | - private $xAxes; |
|
| 21 | + /** |
|
| 22 | + * @var XAxisCollection |
|
| 23 | + */ |
|
| 24 | + private $xAxes; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * @var YAxisCollection |
|
| 28 | - */ |
|
| 29 | - private $yAxes; |
|
| 26 | + /** |
|
| 27 | + * @var YAxisCollection |
|
| 28 | + */ |
|
| 29 | + private $yAxes; |
|
| 30 | 30 | |
| 31 | - /** |
|
| 32 | - * @return XAxis |
|
| 33 | - */ |
|
| 34 | - public function createXAxis() |
|
| 35 | - { |
|
| 36 | - return new XAxis(); |
|
| 37 | - } |
|
| 31 | + /** |
|
| 32 | + * @return XAxis |
|
| 33 | + */ |
|
| 34 | + public function createXAxis() |
|
| 35 | + { |
|
| 36 | + return new XAxis(); |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @return YAxis |
|
| 41 | - */ |
|
| 42 | - public function createYAxis() |
|
| 43 | - { |
|
| 44 | - return new YAxis(); |
|
| 45 | - } |
|
| 39 | + /** |
|
| 40 | + * @return YAxis |
|
| 41 | + */ |
|
| 42 | + public function createYAxis() |
|
| 43 | + { |
|
| 44 | + return new YAxis(); |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * @return XAxisCollection |
|
| 49 | - */ |
|
| 50 | - public function getXAxes() |
|
| 51 | - { |
|
| 52 | - if (is_null($this->xAxes)) { |
|
| 53 | - $this->xAxes = new XAxisCollection(); |
|
| 54 | - } |
|
| 47 | + /** |
|
| 48 | + * @return XAxisCollection |
|
| 49 | + */ |
|
| 50 | + public function getXAxes() |
|
| 51 | + { |
|
| 52 | + if (is_null($this->xAxes)) { |
|
| 53 | + $this->xAxes = new XAxisCollection(); |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | - return $this->xAxes; |
|
| 57 | - } |
|
| 56 | + return $this->xAxes; |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - /** |
|
| 60 | - * @return YAxisCollection |
|
| 61 | - */ |
|
| 62 | - public function getYAxes() |
|
| 63 | - { |
|
| 64 | - if (is_null($this->yAxes)) { |
|
| 65 | - $this->yAxes = new YAxisCollection(); |
|
| 66 | - } |
|
| 59 | + /** |
|
| 60 | + * @return YAxisCollection |
|
| 61 | + */ |
|
| 62 | + public function getYAxes() |
|
| 63 | + { |
|
| 64 | + if (is_null($this->yAxes)) { |
|
| 65 | + $this->yAxes = new YAxisCollection(); |
|
| 66 | + } |
|
| 67 | 67 | |
| 68 | - return $this->yAxes; |
|
| 69 | - } |
|
| 68 | + return $this->yAxes; |
|
| 69 | + } |
|
| 70 | 70 | |
| 71 | - /** |
|
| 72 | - * @return string |
|
| 73 | - */ |
|
| 74 | - public function jsonSerialize() |
|
| 75 | - { |
|
| 76 | - return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 77 | - } |
|
| 71 | + /** |
|
| 72 | + * @return string |
|
| 73 | + */ |
|
| 74 | + public function jsonSerialize() |
|
| 75 | + { |
|
| 76 | + return Json::encode($this->getArrayCopy(), false, [ 'enableJsonExprFinder' => true ]); |
|
| 77 | + } |
|
| 78 | 78 | } |
@@ -8,15 +8,15 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | interface ChartOwnedInterface |
| 10 | 10 | { |
| 11 | - /** |
|
| 12 | - * @param ChartInterface $chart |
|
| 13 | - * |
|
| 14 | - * @return $this |
|
| 15 | - */ |
|
| 16 | - public function setOwner(ChartInterface $chart); |
|
| 11 | + /** |
|
| 12 | + * @param ChartInterface $chart |
|
| 13 | + * |
|
| 14 | + * @return $this |
|
| 15 | + */ |
|
| 16 | + public function setOwner(ChartInterface $chart); |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * @return ChartInterface |
|
| 20 | - */ |
|
| 21 | - public function owner(); |
|
| 18 | + /** |
|
| 19 | + * @return ChartInterface |
|
| 20 | + */ |
|
| 21 | + public function owner(); |
|
| 22 | 22 | } |