mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30: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,7 +1,7 @@
|
|||
<?
|
||||
class EbookTag extends Tag{
|
||||
public function __construct(){
|
||||
$this->Type = TagType::Ebook;
|
||||
$this->Type = Enums\TagType::Ebook;
|
||||
}
|
||||
|
||||
// *******
|
||||
|
@ -48,7 +48,7 @@ class EbookTag extends Tag{
|
|||
$error->Add(new Exceptions\EbookTagNameRequiredException());
|
||||
}
|
||||
|
||||
if($this->Type != TagType::Ebook){
|
||||
if($this->Type != Enums\TagType::Ebook){
|
||||
$error->Add(new Exceptions\InvalidEbookTagTypeException($this->Type));
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ class EbookTag extends Tag{
|
|||
from Tags
|
||||
where Name = ?
|
||||
and Type = ?
|
||||
', [$name, TagType::Ebook], EbookTag::class);
|
||||
', [$name, Enums\TagType::Ebook], EbookTag::class);
|
||||
|
||||
if(isset($result[0])){
|
||||
return $result[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue