Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers / BaseController.php
diff options
context:
space:
mode:
1 files changed, 14 insertions, 5 deletions
-rw-r--r--src/controllers/BaseController.php19
diff --git a/src/controllers/BaseController.php b/src/controllers/BaseController.php
index fd4bedd..2c2a647 100644
--- a/src/controllers/BaseController.php
+++ b/src/controllers/BaseController.php
@@ -1,5 +1,5 @@
<?php
-abstract class BaseController {
+class BaseController {
public static function invoke() {
switch ($_SERVER["REQUEST_METHOD"]) {
case "POST":
@@ -17,11 +17,20 @@ abstract class BaseController {
}
}
- abstract protected static function get();
+ protected static function get() {
+ echo "GET method not implemented!";
+ }
- abstract protected static function post();
+ protected static function post() {
- abstract protected static function put();
+ echo "POST method not implemented!";
+ }
- abstract protected static function delete();
+ protected static function put() {
+ echo "PUT method not implemented!";
+ }
+
+ protected static function delete() {
+ echo "DELETE method not implemented!";
+ }
}