mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
Move enums into their own namespace
This commit is contained in:
parent
c3c588cc1b
commit
be5574eaec
45 changed files with 164 additions and 154 deletions
|
@ -1,13 +1,11 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
use \TagType;
|
||||
|
||||
class InvalidArtworkTagTypeException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Type should be `TagType::Artwork`.';
|
||||
protected $message = 'Type should be `Enums\TagType::Artwork`.';
|
||||
|
||||
public function __construct(?TagType $tagType){
|
||||
public function __construct(?\Enums\TagType $tagType){
|
||||
if($tagType !== null){
|
||||
$this->message .= ' Type provided: ' . $tagType->value;
|
||||
}
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
<?php
|
||||
|
||||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
use \CollectionType;
|
||||
|
||||
class InvalidCollectionTypeException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Collection type should be `series` or `set` according to the EPUB specification.';
|
||||
|
||||
public function __construct(?CollectionType $collectionType){
|
||||
public function __construct(?\Enums\CollectionType $collectionType){
|
||||
if($collectionType !== null){
|
||||
$this->message .= ' Type provided: ' . $collectionType->value;
|
||||
}
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
use \TagType;
|
||||
|
||||
class InvalidEbookTagTypeException extends AppException{
|
||||
/** @var string $message */
|
||||
protected $message = 'Type should be `TagType::Ebook`.';
|
||||
protected $message = 'Type should be `Enums\TagType::Ebook`.';
|
||||
|
||||
public function __construct(?TagType $tagType){
|
||||
public function __construct(?\Enums\TagType $tagType){
|
||||
if($tagType !== null){
|
||||
$this->message .= ' Type provided: ' . $tagType->value;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidFileUploadException extends AppException{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidImageUploadException extends AppException{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidMimeTypeException extends AppException{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue