@@ -13,16 +13,16 @@ |
||
13 | 13 | */ |
14 | 14 | class Line extends Chart |
15 | 15 | { |
16 | - /** |
|
17 | - * The internal type of chart. |
|
18 | - */ |
|
19 | - const TYPE = 'line'; |
|
16 | + /** |
|
17 | + * The internal type of chart. |
|
18 | + */ |
|
19 | + const TYPE = 'line'; |
|
20 | 20 | |
21 | - /** |
|
22 | - * The list of models that should be used for this chart type. |
|
23 | - */ |
|
24 | - const MODEL = [ |
|
25 | - 'dataset' => LineDataSet::class, |
|
26 | - 'options' => LineOptions::class, |
|
27 | - ]; |
|
21 | + /** |
|
22 | + * The list of models that should be used for this chart type. |
|
23 | + */ |
|
24 | + const MODEL = [ |
|
25 | + 'dataset' => LineDataSet::class, |
|
26 | + 'options' => LineOptions::class, |
|
27 | + ]; |
|
28 | 28 | } |
@@ -8,8 +8,8 @@ |
||
8 | 8 | */ |
9 | 9 | class Doughnut extends Pie |
10 | 10 | { |
11 | - /** |
|
12 | - * The internal type of chart. |
|
13 | - */ |
|
14 | - const TYPE = 'doughnut'; |
|
11 | + /** |
|
12 | + * The internal type of chart. |
|
13 | + */ |
|
14 | + const TYPE = 'doughnut'; |
|
15 | 15 | } |
@@ -15,16 +15,16 @@ |
||
15 | 15 | */ |
16 | 16 | class Bar extends Chart |
17 | 17 | { |
18 | - /** |
|
19 | - * The internal type of chart. |
|
20 | - */ |
|
21 | - const TYPE = 'bar'; |
|
18 | + /** |
|
19 | + * The internal type of chart. |
|
20 | + */ |
|
21 | + const TYPE = 'bar'; |
|
22 | 22 | |
23 | - /** |
|
24 | - * The list of models that should be used for this chart type. |
|
25 | - */ |
|
26 | - const MODEL = [ |
|
27 | - 'dataset' => BarDataSet::class, |
|
28 | - 'options' => BarOptions::class, |
|
29 | - ]; |
|
23 | + /** |
|
24 | + * The list of models that should be used for this chart type. |
|
25 | + */ |
|
26 | + const MODEL = [ |
|
27 | + 'dataset' => BarDataSet::class, |
|
28 | + 'options' => BarOptions::class, |
|
29 | + ]; |
|
30 | 30 | } |
@@ -16,16 +16,16 @@ |
||
16 | 16 | */ |
17 | 17 | class Scatter extends Chart |
18 | 18 | { |
19 | - /** |
|
20 | - * The internal type of chart. |
|
21 | - */ |
|
22 | - const TYPE = 'scatter'; |
|
19 | + /** |
|
20 | + * The internal type of chart. |
|
21 | + */ |
|
22 | + const TYPE = 'scatter'; |
|
23 | 23 | |
24 | - /** |
|
25 | - * The list of models that should be used for this chart type. |
|
26 | - */ |
|
27 | - const MODEL = [ |
|
28 | - 'dataset' => ScatterDataSet::class, |
|
29 | - 'options' => ScatterOptions::class, |
|
30 | - ]; |
|
24 | + /** |
|
25 | + * The list of models that should be used for this chart type. |
|
26 | + */ |
|
27 | + const MODEL = [ |
|
28 | + 'dataset' => ScatterDataSet::class, |
|
29 | + 'options' => ScatterOptions::class, |
|
30 | + ]; |
|
31 | 31 | } |
@@ -8,8 +8,8 @@ |
||
8 | 8 | */ |
9 | 9 | class HorizontalBar extends Bar |
10 | 10 | { |
11 | - /** |
|
12 | - * The internal type of chart. |
|
13 | - */ |
|
14 | - const TYPE = 'horizontalBar'; |
|
11 | + /** |
|
12 | + * The internal type of chart. |
|
13 | + */ |
|
14 | + const TYPE = 'horizontalBar'; |
|
15 | 15 | } |
@@ -16,16 +16,16 @@ |
||
16 | 16 | */ |
17 | 17 | class Pie extends Chart implements ChartInterface |
18 | 18 | { |
19 | - /** |
|
20 | - * The internal type of chart. |
|
21 | - */ |
|
22 | - const TYPE = 'pie'; |
|
19 | + /** |
|
20 | + * The internal type of chart. |
|
21 | + */ |
|
22 | + const TYPE = 'pie'; |
|
23 | 23 | |
24 | - /** |
|
25 | - * The list of models that should be used for this chart type. |
|
26 | - */ |
|
27 | - const MODEL = [ |
|
28 | - 'dataset' => PieDataSet::class, |
|
29 | - 'options' => PieOptions::class, |
|
30 | - ]; |
|
24 | + /** |
|
25 | + * The list of models that should be used for this chart type. |
|
26 | + */ |
|
27 | + const MODEL = [ |
|
28 | + 'dataset' => PieDataSet::class, |
|
29 | + 'options' => PieOptions::class, |
|
30 | + ]; |
|
31 | 31 | } |
@@ -11,53 +11,53 @@ |
||
11 | 11 | */ |
12 | 12 | class BubbleDataSet extends DataSet |
13 | 13 | { |
14 | - /** |
|
15 | - * @var string |
|
16 | - */ |
|
17 | - protected $pointStyle; |
|
18 | - |
|
19 | - /** |
|
20 | - * @var int |
|
21 | - */ |
|
22 | - protected $radius; |
|
23 | - |
|
24 | - /** |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function getPointStyle() |
|
28 | - { |
|
29 | - return $this->pointStyle; |
|
30 | - } |
|
31 | - |
|
32 | - /** |
|
33 | - * @param string $pointStyle |
|
34 | - * |
|
35 | - * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
36 | - */ |
|
37 | - public function setPointStyle($pointStyle) |
|
38 | - { |
|
39 | - $this->pointStyle = $pointStyle; |
|
40 | - |
|
41 | - return $this; |
|
42 | - } |
|
43 | - |
|
44 | - /** |
|
45 | - * @return int|null |
|
46 | - */ |
|
47 | - public function getRadius() |
|
48 | - { |
|
49 | - return $this->radius; |
|
50 | - } |
|
51 | - |
|
52 | - /** |
|
53 | - * @param int $radius |
|
54 | - * |
|
55 | - * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
56 | - */ |
|
57 | - public function setRadius($radius) |
|
58 | - { |
|
59 | - $this->radius = $radius; |
|
60 | - |
|
61 | - return $this; |
|
62 | - } |
|
14 | + /** |
|
15 | + * @var string |
|
16 | + */ |
|
17 | + protected $pointStyle; |
|
18 | + |
|
19 | + /** |
|
20 | + * @var int |
|
21 | + */ |
|
22 | + protected $radius; |
|
23 | + |
|
24 | + /** |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function getPointStyle() |
|
28 | + { |
|
29 | + return $this->pointStyle; |
|
30 | + } |
|
31 | + |
|
32 | + /** |
|
33 | + * @param string $pointStyle |
|
34 | + * |
|
35 | + * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
36 | + */ |
|
37 | + public function setPointStyle($pointStyle) |
|
38 | + { |
|
39 | + $this->pointStyle = $pointStyle; |
|
40 | + |
|
41 | + return $this; |
|
42 | + } |
|
43 | + |
|
44 | + /** |
|
45 | + * @return int|null |
|
46 | + */ |
|
47 | + public function getRadius() |
|
48 | + { |
|
49 | + return $this->radius; |
|
50 | + } |
|
51 | + |
|
52 | + /** |
|
53 | + * @param int $radius |
|
54 | + * |
|
55 | + * @return \Halfpastfour\PHPChartJS\DataSet\BubbleDataSet |
|
56 | + */ |
|
57 | + public function setRadius($radius) |
|
58 | + { |
|
59 | + $this->radius = $radius; |
|
60 | + |
|
61 | + return $this; |
|
62 | + } |
|
63 | 63 | } |
@@ -8,10 +8,10 @@ |
||
8 | 8 | */ |
9 | 9 | interface ArraySerializableInterface |
10 | 10 | { |
11 | - /** |
|
12 | - * Should return an array containing all values. |
|
13 | - * |
|
14 | - * @return array |
|
15 | - */ |
|
16 | - public function getArrayCopy(); |
|
11 | + /** |
|
12 | + * Should return an array containing all values. |
|
13 | + * |
|
14 | + * @return array |
|
15 | + */ |
|
16 | + public function getArrayCopy(); |
|
17 | 17 | } |
@@ -8,28 +8,28 @@ |
||
8 | 8 | */ |
9 | 9 | trait ChartOwned |
10 | 10 | { |
11 | - /** |
|
12 | - * @var ChartInterface |
|
13 | - */ |
|
14 | - private $owner; |
|
11 | + /** |
|
12 | + * @var ChartInterface |
|
13 | + */ |
|
14 | + private $owner; |
|
15 | 15 | |
16 | - /** |
|
17 | - * @param ChartInterface $chart |
|
18 | - * |
|
19 | - * @return $this |
|
20 | - */ |
|
21 | - public function setOwner(ChartInterface $chart) |
|
22 | - { |
|
23 | - $this->owner = $chart; |
|
16 | + /** |
|
17 | + * @param ChartInterface $chart |
|
18 | + * |
|
19 | + * @return $this |
|
20 | + */ |
|
21 | + public function setOwner(ChartInterface $chart) |
|
22 | + { |
|
23 | + $this->owner = $chart; |
|
24 | 24 | |
25 | - return $this; |
|
26 | - } |
|
25 | + return $this; |
|
26 | + } |
|
27 | 27 | |
28 | - /** |
|
29 | - * @return ChartInterface |
|
30 | - */ |
|
31 | - public function owner() |
|
32 | - { |
|
33 | - return $this->owner; |
|
34 | - } |
|
28 | + /** |
|
29 | + * @return ChartInterface |
|
30 | + */ |
|
31 | + public function owner() |
|
32 | + { |
|
33 | + return $this->owner; |
|
34 | + } |
|
35 | 35 | } |