Make all non-inherited classes final

This commit is contained in:
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

@ -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.