Make all non-inherited classes final

This commit is contained in:
Joshua Ramon Enslin 2020-08-29 12:57:45 +02:00 committed by Stefan Rohde-Enslin
parent 237db1c58a
commit f0b39322ec
29 changed files with 29 additions and 35 deletions

View File

@ -7,7 +7,7 @@ declare(strict_types = 1);
/**
* Debugging and error handling class.
*/
class MDErrorReporter {
final class MDErrorReporter {
const MD_ERROR_UNKNOWN = 20;
const MD_ERROR_CRITICAL = 10;

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
/**
* Custom exception class for invalid page parameters.
*/
class MDAccessDeniedException extends MDExpectedException {
final class MDAccessDeniedException extends MDExpectedException {
/**
* Error message.

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
/**
* Custom exception class for errors loading configuration information.
*/
class MDConfigCannotBeLoadedException extends Exception {
final class MDConfigCannotBeLoadedException extends Exception {
/**
* Error message.

View File

@ -2,8 +2,6 @@
/**
* This file contains an exception class for trying to enter non-existent files.
*
* @file
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
@ -11,7 +9,7 @@ declare(strict_types = 1);
/**
* Custom exception class for non-existing files.
*/
class MDFileDoesNotExist extends Exception {
final class MDFileDoesNotExist extends Exception {
/**
* Error message.

View File

@ -2,8 +2,6 @@
/**
* This file contains an exception class for trying to enter non-existent files.
*
* @file
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
@ -11,7 +9,7 @@ declare(strict_types = 1);
/**
* Custom exception class for non-existing files.
*/
class MDFileIsNotReadable extends Exception {
final class MDFileIsNotReadable extends Exception {
/**
* Error message.

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
/**
* Custom exception class for errors loading configuration information.
*/
class MDInaccessiblePropertyException extends Exception {
final class MDInaccessiblePropertyException extends Exception {
/**
* Error message.

View File

@ -2,8 +2,6 @@
/**
* This file contains an exception class for trying to enter non-existent files.
*
* @file
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
@ -11,7 +9,7 @@ declare(strict_types = 1);
/**
* Custom exception class for non-existing files.
*/
class MDOutputBufferNotStarted extends Exception {
final class MDOutputBufferNotStarted extends Exception {
/**
* Error message.

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
/**
* Custom exception class for errors loading configuration information.
*/
class MDRequiredConfigNotSet extends Exception {
final class MDRequiredConfigNotSet extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Exception thrown in case the main entity of a page (e.g. an object, an institution etc.)
* are not set public.
*/
class MDhttpFailedException extends Exception {
final class MDhttpFailedException extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Custom exception class for invalid page parameters, which must be values of a
* preset list of allowed values.
*/
class MDmainEntityNotExistentException extends Exception {
final class MDmainEntityNotExistentException extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Custom exception class for invalid page parameters, which must be values of a
* preset list of allowed values.
*/
class MDpageParameterNotFromListException extends Exception {
final class MDpageParameterNotFromListException extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Exception thrown in case the main entity of a page (e.g. an object, an institution etc.)
* are not set public.
*/
class MDPageNotInAggregatedException extends Exception {
final class MDPageNotInAggregatedException extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Exception thrown in case the main entity of a page (e.g. an object, an institution etc.)
* are not set public.
*/
class MDmainEntityNotPublicException extends Exception {
final class MDmainEntityNotPublicException extends Exception {
/**
* Error message.

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
/**
* Custom exception class for missing page parameters.
*/
class MDpageParameterMissingException extends Exception {
final class MDpageParameterMissingException extends Exception {
/**
* Error message.

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
/**
* Custom exception class for invalid page parameters.
*/
class MDpageParameterNotNumericException extends Exception {
final class MDpageParameterNotNumericException extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Exception thrown in case an erroneously duplicate link is to be entered in a
* linking table.
*/
class MDDuplicateLinkException extends Exception {
final class MDDuplicateLinkException extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Custom exception class for invalid page parameters, which must be values of a
* preset list of allowed values.
*/
class MDFileUploadNotAcceptedException extends Exception {
final class MDFileUploadNotAcceptedException extends Exception {
/**
* Error message.

View File

@ -12,7 +12,7 @@ declare(strict_types = 1);
* Custom exception class to be raised when trying to use a currency that is not
* accepted by museum-digital.
*/
class MDInvalidCurrency extends MDgenericInvalidInputsException {
final class MDInvalidCurrency extends MDgenericInvalidInputsException {
/**
* Error message.

View File

@ -12,7 +12,7 @@ declare(strict_types = 1);
* Custom exception class to be raised when trying to use a currency that is not
* accepted by museum-digital.
*/
class MDInvalidInputDate extends Exception {
final class MDInvalidInputDate extends Exception {
/**
* Error message.

View File

@ -12,7 +12,7 @@ declare(strict_types = 1);
* Custom exception class to be raised when trying to use a length unit that is not
* accepted by museum-digital.
*/
class MDInvalidLengthUnit extends MDgenericInvalidInputsException {
final class MDInvalidLengthUnit extends MDgenericInvalidInputsException {
/**
* Error message.

View File

@ -12,7 +12,7 @@ declare(strict_types = 1);
* Custom exception class to be raised when trying to use a license that is not
* accepted by museum-digital.
*/
class MDInvalidLicense extends MDgenericInvalidInputsException {
final class MDInvalidLicense extends MDgenericInvalidInputsException {
/**
* Error message.

View File

@ -12,7 +12,7 @@ declare(strict_types = 1);
* Custom exception class to be raised when trying to use a license that is not
* accepted by museum-digital.
*/
class MDInvalidObjectPublicationBackground extends MDgenericInvalidInputsException {
final class MDInvalidObjectPublicationBackground extends MDgenericInvalidInputsException {
/**
* Error message.

View File

@ -12,7 +12,7 @@ declare(strict_types = 1);
* Custom exception class to be raised when trying to use a weight unit that is not
* accepted by museum-digital.
*/
class MDInvalidWeightUnit extends MDgenericInvalidInputsException {
final class MDInvalidWeightUnit extends MDgenericInvalidInputsException {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Custom exception class for invalid page parameters, which must be values of a
* preset list of allowed values.
*/
class MDNoUpdateVarSetException extends Exception {
final class MDNoUpdateVarSetException extends Exception {
/**
* Error message.

View File

@ -11,7 +11,7 @@ declare(strict_types = 1);
/**
* Custom exception class for wrongly used files.
*/
class MDTooManyFilesUploadException extends Exception {
final class MDTooManyFilesUploadException extends Exception {
/**
* Error message.

View File

@ -11,7 +11,7 @@ declare(strict_types = 1);
/**
* Custom exception class for wrongly used files.
*/
class MDWrongFileType extends Exception {
final class MDWrongFileType extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Exception thrown in case the main entity of a page (e.g. an object, an institution etc.)
* are not set public.
*/
class MDcouldNotSaveException extends Exception {
final class MDcouldNotSaveException extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Exception thrown in case the main entity of a page (e.g. an object, an institution etc.)
* are not set public.
*/
class MDcouldNotSetPublic extends Exception {
final class MDcouldNotSetPublic extends Exception {
/**
* Error message.

View File

@ -5,7 +5,7 @@ declare(strict_types = 1);
* Exception thrown in case the main entity of a page (e.g. an object, an institution etc.)
* are not set public.
*/
class MDwriteAccessDeniedException extends Exception {
final class MDwriteAccessDeniedException extends Exception {
/**
* Error message.