public static function getErrorCodeInstance() { if (is_null(self::$errorCodeObj) || !isset(self::$errorCodeObj)) { self::$errorCodeObj = new ErrorCodeDbModel(); } return self::$errorCodeObj; }