mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -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,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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue