mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 10:02:02 -04:00
Fix docblocks
This commit is contained in:
parent
de76531589
commit
f4613aa9af
2 changed files with 10 additions and 10 deletions
|
@ -178,7 +178,7 @@ class Artwork extends Accessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@throws Exceptions\InvalidArtworkException
|
* @throws Exceptions\InvalidArtworkException
|
||||||
*/
|
*/
|
||||||
protected function GetImageUrl(): string{
|
protected function GetImageUrl(): string{
|
||||||
if($this->_ImageUrl === null){
|
if($this->_ImageUrl === null){
|
||||||
|
@ -193,7 +193,7 @@ class Artwork extends Accessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@throws Exceptions\ArtworkNotFoundException
|
* @throws Exceptions\ArtworkNotFoundException
|
||||||
*/
|
*/
|
||||||
protected function GetThumbUrl(): string{
|
protected function GetThumbUrl(): string{
|
||||||
if($this->_ThumbUrl === null){
|
if($this->_ThumbUrl === null){
|
||||||
|
@ -208,7 +208,7 @@ class Artwork extends Accessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@throws Exceptions\ArtworkNotFoundException
|
* @throws Exceptions\ArtworkNotFoundException
|
||||||
*/
|
*/
|
||||||
protected function GetThumb2xUrl(): string{
|
protected function GetThumb2xUrl(): string{
|
||||||
if($this->_Thumb2xUrl === null){
|
if($this->_Thumb2xUrl === null){
|
||||||
|
@ -316,7 +316,7 @@ class Artwork extends Accessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@throws Exceptions\ValidationException
|
* @throws Exceptions\ValidationException
|
||||||
*/
|
*/
|
||||||
protected function Validate(?string $imagePath = null, bool $isImageRequired = true): void{
|
protected function Validate(?string $imagePath = null, bool $isImageRequired = true): void{
|
||||||
$now = new DateTimeImmutable();
|
$now = new DateTimeImmutable();
|
||||||
|
@ -635,8 +635,8 @@ class Artwork extends Accessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@throws Exceptions\ValidationException
|
* @throws Exceptions\ValidationException
|
||||||
*@throws Exceptions\InvalidImageUploadException
|
* @throws Exceptions\InvalidImageUploadException
|
||||||
*/
|
*/
|
||||||
public function Create(?string $imagePath = null): void{
|
public function Create(?string $imagePath = null): void{
|
||||||
$this->MimeType = ImageMimeType::FromFile($imagePath);
|
$this->MimeType = ImageMimeType::FromFile($imagePath);
|
||||||
|
@ -698,7 +698,7 @@ class Artwork extends Accessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@throws Exceptions\ValidationException
|
* @throws Exceptions\ValidationException
|
||||||
*/
|
*/
|
||||||
public function Save(?string $imagePath = null): void{
|
public function Save(?string $imagePath = null): void{
|
||||||
$this->_UrlName = null;
|
$this->_UrlName = null;
|
||||||
|
@ -812,7 +812,7 @@ class Artwork extends Accessor{
|
||||||
// ***********
|
// ***********
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@throws Exceptions\ArtworkNotFoundException
|
* @throws Exceptions\ArtworkNotFoundException
|
||||||
*/
|
*/
|
||||||
public static function Get(?int $artworkId): Artwork{
|
public static function Get(?int $artworkId): Artwork{
|
||||||
if($artworkId === null){
|
if($artworkId === null){
|
||||||
|
@ -829,7 +829,7 @@ class Artwork extends Accessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@throws Exceptions\InvalidArtworkException
|
* @throws Exceptions\ArtworkNotFoundException
|
||||||
*/
|
*/
|
||||||
public static function GetByUrl(?string $artistUrlName, ?string $artworkUrlName): Artwork{
|
public static function GetByUrl(?string $artistUrlName, ?string $artworkUrlName): Artwork{
|
||||||
if($artistUrlName === null || $artworkUrlName === null){
|
if($artistUrlName === null || $artworkUrlName === null){
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Image{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return resource
|
* @return resource
|
||||||
*@throws Exceptions\InvalidImageUploadException
|
* @throws Exceptions\InvalidImageUploadException
|
||||||
*/
|
*/
|
||||||
private function GetImageHandleFromTiff(){
|
private function GetImageHandleFromTiff(){
|
||||||
$tempFilename = sys_get_temp_dir() . '/se-' . pathinfo($this->Path)['filename'] . '.jpg';
|
$tempFilename = sys_get_temp_dir() . '/se-' . pathinfo($this->Path)['filename'] . '.jpg';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue