Browse Source

Make public

Joachim M. Giæver 2 years ago
parent
commit
22073fdbdc
5 changed files with 5 additions and 5 deletions
  1. 1 1
      src/AbstractPostSerializable.php
  2. 1 1
      src/Assignment.php
  3. 1 1
      src/Customer.php
  4. 1 1
      src/Prospectus.php
  5. 1 1
      src/Questionaire.php

+ 1 - 1
src/AbstractPostSerializable.php

@@ -12,5 +12,5 @@ abstract class AbstractPostSerializable implements PostSerializableInterface {
         return new static(...array_values($vars));
     }
 
-    abstract protected static function getClassVars(): array;
+    abstract public static function getClassVars(): array;
 }

+ 1 - 1
src/Assignment.php

@@ -27,7 +27,7 @@ class Assignment extends AbstractPostSerializable implements PostSerializableInt
         ];
     }
 
-    protected static function getClassVars(): array {
+    public static function getClassVars(): array {
         return array_keys(get_class_vars(__CLASS__));
     }
 }

+ 1 - 1
src/Customer.php

@@ -33,7 +33,7 @@ class Customer extends AbstractPostSerializable implements PostSerializableInter
         return $arr;
     }
 
-    protected static function getClassVars(): array {
+    public static function getClassVars(): array {
         return array_keys(get_class_vars(__CLASS__));
     }
 }

+ 1 - 1
src/Prospectus.php

@@ -28,7 +28,7 @@ class Prospectus extends AbstractPostSerializable implements PostSerializableInt
         );
     }
 
-    protected static function getClassVars(): array {
+    public static function getClassVars(): array {
         return array_keys(get_class_vars(__CLASS__));
     }
 }

+ 1 - 1
src/Questionaire.php

@@ -27,7 +27,7 @@ class Questionaire extends AbstractPostSerializable implements PostSerializableI
         return $arr;
     }
 
-    protected static function getClassVars(): array {
+    public static function getClassVars(): array {
         return array_keys(get_class_vars(__CLASS__));
     }
 }