From: Tim Düsterhus Date: Wed, 17 Feb 2021 14:49:05 +0000 (+0100) Subject: Add ISafeFormatAvatar X-Git-Tag: 5.4.0_Alpha_1~238^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c3c6a17a107a10e9a95e75bd541e4f4f3e84a0f8;p=GitHub%2FWoltLab%2FWCF.git Add ISafeFormatAvatar --- diff --git a/wcfsetup/install/files/lib/data/user/avatar/ISafeFormatAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/ISafeFormatAvatar.class.php new file mode 100644 index 0000000000..a909ad3f41 --- /dev/null +++ b/wcfsetup/install/files/lib/data/user/avatar/ISafeFormatAvatar.class.php @@ -0,0 +1,24 @@ + + * @package WoltLabSuite\Core\Data\User\Avatar + */ +interface ISafeFormatAvatar extends IUserAvatar +{ + /** + * @see IUserAvatar::getURL() + */ + public function getSafeURL(?int $size = null): string; + + /** + * @see IUserAvatar::getImageTag() + */ + public function getSafeImageTag(?int $size = null): string; +}