chore: Аннотации к типам
This commit is contained in:
parent
09a61244ca
commit
1e27648a12
17 changed files with 217 additions and 81 deletions
|
|
@ -6,6 +6,10 @@ use GdImage;
|
|||
|
||||
class Image
|
||||
{
|
||||
/**
|
||||
* @param $uri
|
||||
* @return GdImage|false
|
||||
*/
|
||||
static function load($uri): GdImage|false
|
||||
{
|
||||
$e = strtolower(pathinfo($uri, PATHINFO_EXTENSION));
|
||||
|
|
@ -32,6 +36,11 @@ class Image
|
|||
return $image_p;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param GdImage $image
|
||||
* @param string $uri
|
||||
* @return bool
|
||||
*/
|
||||
static function save($image, $uri): bool
|
||||
{
|
||||
$e = strtolower(pathinfo($uri, PATHINFO_EXTENSION));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue