<?php
 namespace App\QcRules; abstract class FieldsAbstract { public $idCurrentUser = CURRENT_ID_USER; public $idCurrentOffice = CURRENT_ID_OFFICE; public $idCurrentDepartment = CURRENT_ID_DEPT; public function getEntity() { list($entity,) = explode('_', stripClassNamespace(get_called_class())); return $entity; } } 