chore: Аннотации к типам

This commit is contained in:
origami11@yandex.ru 2025-10-21 12:00:06 +03:00
parent 09a61244ca
commit 1e27648a12
17 changed files with 217 additions and 81 deletions

View file

@ -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));