mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Continue improving type hints
This commit is contained in:
parent
eb376c87bd
commit
703e1a7a03
73 changed files with 98 additions and 114 deletions
|
@ -2,10 +2,10 @@
|
|||
namespace Exceptions;
|
||||
|
||||
class ArtworkImageDimensionsTooSmallException extends AppException{
|
||||
protected $message;
|
||||
|
||||
// This has to be initialized in a constructor because we use the number_format() function.
|
||||
public function __construct(){
|
||||
$this->message = 'Image dimensions are too small. The minimum image size is ' . number_format(ARTWORK_IMAGE_MINIMUM_WIDTH) . ' × ' . number_format(ARTWORK_IMAGE_MINIMUM_HEIGHT) . '.';
|
||||
|
||||
parent::__construct($this->message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue