Skip to content

Commit c22363f

Browse files
committed
make getData invisible from public
1 parent 020556d commit c22363f

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

bootstrap/System/Enqueue.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use PluginMaster\Bootstrap\System\Helpers\App;
66
use PluginMaster\Contracts\Enqueue\EnqueueInterface;
77

8+
89
class Enqueue implements EnqueueInterface
910
{
1011
/**
@@ -91,11 +92,6 @@ private function getCurrentIndex(): int
9192
return count($this->data) - 1;
9293
}
9394

94-
public function getData(): array
95-
{
96-
return $this->data;
97-
}
98-
9995
/**
10096
* @return Enqueue
10197
*/
@@ -233,6 +229,19 @@ public function inlineStyle(string $data, string $handle = ''): void
233229
];
234230
}
235231

232+
private function getData(): array
233+
{
234+
return $this->data;
235+
}
236+
237+
public function __call($method, $args): array
238+
{
239+
if($method == 'getData'){
240+
return $this->getData();
241+
}
242+
243+
return [];
244+
}
236245
}
237246

238247

0 commit comments

Comments
 (0)