22
33namespace Akaunting \Apexcharts \Options ;
44
5- use Akaunting \Apexcharts \Charts ;
5+ use Akaunting \Apexcharts \Chart as MainChart ;
66
77trait Chart
88{
@@ -52,7 +52,7 @@ trait Chart
5252
5353 public array $ zoom = [];
5454
55- public function setAnimations (array $ animations ): Chart
55+ public function setAnimations (array $ animations ): MainChart
5656 {
5757 $ this ->animations = $ animations ;
5858
@@ -70,7 +70,7 @@ public function getAnimations(): array
7070 return $ this ->animations ;
7171 }
7272
73- public function setBackground (string $ background ): Chart
73+ public function setBackground (string $ background ): MainChart
7474 {
7575 $ this ->background = $ background ;
7676
@@ -88,7 +88,7 @@ public function getBackground(): string
8888 return $ this ->background ;
8989 }
9090
91- public function setBrush (array $ brush ): Chart
91+ public function setBrush (array $ brush ): MainChart
9292 {
9393 $ this ->brush = $ brush ;
9494
@@ -106,7 +106,7 @@ public function getBrush(): array
106106 return $ this ->brush ;
107107 }
108108
109- public function setDefaultLocale (string $ defaultLocale ): Chart
109+ public function setDefaultLocale (string $ defaultLocale ): MainChart
110110 {
111111 $ this ->defaultLocale = $ defaultLocale ;
112112
@@ -124,7 +124,7 @@ public function getDefaultLocale(): string
124124 return $ this ->defaultLocale ;
125125 }
126126
127- public function setDropShadow (array $ dropShadow ): Chart
127+ public function setDropShadow (array $ dropShadow ): MainChart
128128 {
129129 $ this ->dropShadow = $ dropShadow ;
130130
@@ -142,7 +142,7 @@ public function getDropShadow(): array
142142 return $ this ->dropShadow ;
143143 }
144144
145- public function setFontFamily (string $ fontFamily ): Chart
145+ public function setFontFamily (string $ fontFamily ): MainChart
146146 {
147147 $ this ->fontFamily = $ fontFamily ;
148148
@@ -160,7 +160,7 @@ public function getFontFamily(): string
160160 return $ this ->fontFamily ;
161161 }
162162
163- public function setForeColor (string $ foreColor ): Chart
163+ public function setForeColor (string $ foreColor ): MainChart
164164 {
165165 $ this ->foreColor = $ foreColor ;
166166
@@ -178,7 +178,7 @@ public function getForeColor(): string
178178 return $ this ->foreColor ;
179179 }
180180
181- public function setGroup (string $ group ): Chart
181+ public function setGroup (string $ group ): MainChart
182182 {
183183 $ this ->group = $ group ;
184184
@@ -196,7 +196,7 @@ public function getGroup(): string
196196 return $ this ->group ;
197197 }
198198
199- public function setEvents (array $ events ): Chart
199+ public function setEvents (array $ events ): MainChart
200200 {
201201 $ this ->events = $ events ;
202202
@@ -214,7 +214,7 @@ public function getEvents(): array
214214 return $ this ->events ;
215215 }
216216
217- public function setHeight (int |string |null $ height ): Chart
217+ public function setHeight (int |string |null $ height ): MainChart
218218 {
219219 $ this ->height = $ height ;
220220
@@ -232,7 +232,7 @@ public function getHeight(): int|string|null
232232 return $ this ->height ;
233233 }
234234
235- public function setLocales (array $ locales ): Chart
235+ public function setLocales (array $ locales ): MainChart
236236 {
237237 $ this ->locales = $ locales ;
238238
@@ -250,7 +250,7 @@ public function getLocales(): array
250250 return $ this ->locales ;
251251 }
252252
253- public function setOffsetX (int $ offsetX ): Chart
253+ public function setOffsetX (int $ offsetX ): MainChart
254254 {
255255 $ this ->offsetX = $ offsetX ;
256256
@@ -268,7 +268,7 @@ public function getOffsetX(): int
268268 return $ this ->offsetX ;
269269 }
270270
271- public function setOffsetY (int $ offsetY ): Chart
271+ public function setOffsetY (int $ offsetY ): MainChart
272272 {
273273 $ this ->offsetY = $ offsetY ;
274274
@@ -286,7 +286,7 @@ public function getOffsetY(): int
286286 return $ this ->offsetY ;
287287 }
288288
289- public function setParentHeightOffset (int $ parentHeightOffset ): Chart
289+ public function setParentHeightOffset (int $ parentHeightOffset ): MainChart
290290 {
291291 $ this ->parentHeightOffset = $ parentHeightOffset ;
292292
@@ -304,7 +304,7 @@ public function getParentHeightOffset(): int
304304 return $ this ->parentHeightOffset ;
305305 }
306306
307- public function setRedrawOnParentResize (bool $ redrawOnParentResize ): Chart
307+ public function setRedrawOnParentResize (bool $ redrawOnParentResize ): MainChart
308308 {
309309 $ this ->redrawOnParentResize = $ redrawOnParentResize ;
310310
@@ -322,7 +322,7 @@ public function getRedrawOnParentResize(): bool
322322 return $ this ->redrawOnParentResize ;
323323 }
324324
325- public function setRedrawOnWindowResize (bool $ redrawOnWindowResize ): Chart
325+ public function setRedrawOnWindowResize (bool $ redrawOnWindowResize ): MainChart
326326 {
327327 $ this ->redrawOnWindowResize = $ redrawOnWindowResize ;
328328
@@ -340,7 +340,7 @@ public function getRedrawOnWindowResize(): bool
340340 return $ this ->redrawOnWindowResize ;
341341 }
342342
343- public function setSelection (array $ selection ): Chart
343+ public function setSelection (array $ selection ): MainChart
344344 {
345345 $ this ->selection = $ selection ;
346346
@@ -358,7 +358,7 @@ public function getSelection(): array
358358 return $ this ->selection ;
359359 }
360360
361- public function setSparkline (array $ sparkline ): Chart
361+ public function setSparkline (array $ sparkline ): MainChart
362362 {
363363 $ this ->sparkline = $ sparkline ;
364364
@@ -376,7 +376,7 @@ public function getSparkline(): array
376376 return $ this ->sparkline ;
377377 }
378378
379- public function setStacked (bool $ stacked ): Chart
379+ public function setStacked (bool $ stacked ): MainChart
380380 {
381381 $ this ->stacked = $ stacked ;
382382
@@ -394,7 +394,7 @@ public function getStacked(): bool
394394 return $ this ->stacked ;
395395 }
396396
397- public function setStackType (string $ stackType ): Chart
397+ public function setStackType (string $ stackType ): MainChart
398398 {
399399 $ this ->stackType = $ stackType ;
400400
@@ -412,7 +412,7 @@ public function getStackType(): string
412412 return $ this ->stackType ;
413413 }
414414
415- public function setToolbar (array $ toolbar ): Chart
415+ public function setToolbar (array $ toolbar ): MainChart
416416 {
417417 $ this ->toolbar = $ toolbar ;
418418
@@ -430,7 +430,7 @@ public function getToolbar(): array
430430 return $ this ->toolbar ;
431431 }
432432
433- public function setWidth (int |string |null $ width ): Chart
433+ public function setWidth (int |string |null $ width ): MainChart
434434 {
435435 $ this ->width = $ width ;
436436
@@ -448,7 +448,7 @@ public function getWidth(): int|string|null
448448 return $ this ->width ;
449449 }
450450
451- public function setZoom (array $ zoom ): Chart
451+ public function setZoom (array $ zoom ): MainChart
452452 {
453453 $ this ->zoom = $ zoom ;
454454
0 commit comments