From c0c668ce0b9109d8374fc741f920a30cffb957b1 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 20 Jan 2020 14:58:07 -0500 Subject: [PATCH] Api4 - Make abstract function abstract --- Civi/Api4/Generic/AbstractEntity.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Civi/Api4/Generic/AbstractEntity.php b/Civi/Api4/Generic/AbstractEntity.php index bd0c447fe986..cdcd6dd100ba 100644 --- a/Civi/Api4/Generic/AbstractEntity.php +++ b/Civi/Api4/Generic/AbstractEntity.php @@ -52,13 +52,9 @@ public static function getActions() { } /** - * Should return \Civi\Api4\Generic\BasicGetFieldsAction - * @todo make this function abstract when we require php 7. - * @throws \Civi\API\Exception\NotImplementedException + * @return \Civi\Api4\Generic\BasicGetFieldsAction */ - public static function getFields() { - throw new NotImplementedException(self::getEntityName() . ' should implement getFields action.'); - } + abstract public static function getFields(); /** * Returns a list of permissions needed to access the various actions in this api.