1 | <?php |
||
25 | final class HighchartsTitle implements JsonSerializable { |
||
26 | |||
27 | /** |
||
28 | * Style. |
||
29 | * |
||
30 | * @var array |
||
31 | * @since 3.0 |
||
32 | */ |
||
33 | private $style = ["fontWeight" => "bold"]; |
||
34 | |||
35 | /** |
||
36 | * Text. |
||
37 | * |
||
38 | * @var string |
||
39 | * @since 3.0 |
||
40 | */ |
||
41 | private $text; |
||
42 | |||
43 | /** |
||
44 | * Constructor. |
||
45 | * |
||
46 | * @param boolean $ignoreDefaultValues Ignore the default values. |
||
47 | */ |
||
48 | public function __construct($ignoreDefaultValues = true) { |
||
53 | |||
54 | /** |
||
55 | * Clear. |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | public function clear() { |
||
67 | |||
68 | /** |
||
69 | * Get the style. |
||
70 | * |
||
71 | * @return array Returns the style. |
||
72 | */ |
||
73 | public function getStyle() { |
||
76 | |||
77 | /** |
||
78 | * Get the text. |
||
79 | * |
||
80 | * @return string Returns the text. |
||
81 | */ |
||
82 | public function getText() { |
||
85 | |||
86 | /** |
||
87 | * Serialize this instance. |
||
88 | * |
||
89 | * @return array Returns an array representing this instance. |
||
90 | */ |
||
91 | public function jsonSerialize() { |
||
94 | |||
95 | /** |
||
96 | * Set the style. |
||
97 | * |
||
98 | * @param array $style The style. |
||
99 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle Returns the highcharts title. |
||
100 | */ |
||
101 | public function setStyle(array $style = null) { |
||
105 | |||
106 | /** |
||
107 | * Set the text. |
||
108 | * |
||
109 | * @param string $text The text. |
||
110 | * @return \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle Returns the highcharts title. |
||
111 | */ |
||
112 | public function setText($text) { |
||
116 | |||
117 | /** |
||
118 | * Convert into an array representing this instance. |
||
119 | * |
||
120 | * @return array Returns an array representing this instance. |
||
121 | */ |
||
122 | public function toArray() { |
||
136 | |||
137 | } |
||
138 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..