| Total Complexity | 9 |
| Total Lines | 87 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Arc implements ArraySerializableInterface, \JsonSerializable |
||
| 11 | { |
||
| 12 | use ArraySerializable; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Arc fill color. |
||
| 16 | * @default 'rgba(0,0,0,0.1)' |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $backgroundColor; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Arc stroke color. |
||
| 23 | * @default '#fff' |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $borderColor; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Arc stroke width. |
||
| 30 | * @default 2 |
||
| 31 | * @var int |
||
| 32 | */ |
||
| 33 | private $borderWidth; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getBackgroundColor() |
||
| 39 | { |
||
| 40 | return $this->backgroundColor; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $backgroundColor |
||
| 45 | * @return Arc |
||
| 46 | */ |
||
| 47 | public function setBackgroundColor($backgroundColor) |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getBorderColor() |
||
| 57 | { |
||
| 58 | return $this->borderColor; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param string $borderColor |
||
| 63 | * @return Arc |
||
| 64 | */ |
||
| 65 | public function setBorderColor($borderColor) |
||
| 66 | { |
||
| 67 | $this->borderColor = is_null($borderColor) ? null : strval($borderColor); |
||
| 68 | return $this; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return int |
||
| 73 | */ |
||
| 74 | public function getBorderWidth() |
||
| 75 | { |
||
| 76 | return $this->borderWidth; |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param int $borderWidth |
||
| 81 | * @return Arc |
||
| 82 | */ |
||
| 83 | public function setBorderWidth($borderWidth) |
||
| 84 | { |
||
| 85 | $this->borderWidth = intval($borderWidth); |
||
| 86 | return $this; |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @return string |
||
| 91 | * @throws \ReflectionException |
||
| 92 | * @throws \Zend_Reflection_Exception |
||
| 93 | */ |
||
| 94 | public function jsonSerialize() |
||
| 97 | } |
||
| 98 | } |