mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -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
|
@ -10,7 +10,7 @@ class Collection{
|
|||
public int $CollectionId;
|
||||
public string $Name;
|
||||
public string $UrlName;
|
||||
public ?CollectionType $Type = null;
|
||||
public ?Enums\CollectionType $Type = null;
|
||||
protected ?string $_Url = null;
|
||||
|
||||
protected function GetUrl(): string{
|
||||
|
@ -85,7 +85,7 @@ class Collection{
|
|||
$error->Add(new Exceptions\CollectionUrlNameRequiredException());
|
||||
}
|
||||
|
||||
if($this->Type !== null && ($this->Type != CollectionType::Series && $this->Type != CollectionType::Set)){
|
||||
if($this->Type !== null && ($this->Type != Enums\CollectionType::Series && $this->Type != Enums\CollectionType::Set)){
|
||||
$error->Add(new Exceptions\InvalidCollectionTypeException($this->Type));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue