Skip to content

Commit 7a0b3b1

Browse files
committed
changed abstract to protected in getUpstream()
1 parent 108c819 commit 7a0b3b1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

glued/Controllers/IfController.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ public function getActions(Request $request, Response $response, array $args = [
109109
* return $data;
110110
* ```
111111
*/
112-
abstract protected function getUpstream(): array;
112+
protected function getUpstream(): array
113+
{
114+
throw new \Exception("Method getUpstream() not implemented");
115+
}
113116

114117
/**
115118
* Abstract method to save raw and transformed upstream data (must be implemented in child classes).
@@ -127,8 +130,10 @@ abstract protected function getUpstream(): array;
127130
* return $tsdb->CommonCreateBatch($upstreamData, $xf);
128131
* ```
129132
*/
130-
abstract protected function saveUpstream(array $upstreamData): bool;
131-
133+
protected function saveUpstream(array $upstreamData): bool
134+
{
135+
throw new \Exception("Method getUpstream() not implemented");
136+
}
132137
/**
133138
* Syncs upstream data if the last sync occurred more than the specified TTL (time-to-live).
134139
*

0 commit comments

Comments
 (0)