diff options
Diffstat (limited to 'app/Core/User/Avatar/AvatarProviderInterface.php')
-rw-r--r-- | app/Core/User/Avatar/AvatarProviderInterface.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/Core/User/Avatar/AvatarProviderInterface.php b/app/Core/User/Avatar/AvatarProviderInterface.php new file mode 100644 index 00000000..e0375d26 --- /dev/null +++ b/app/Core/User/Avatar/AvatarProviderInterface.php @@ -0,0 +1,30 @@ +<?php + +namespace Kanboard\Core\User\Avatar; + +/** + * Avatar Provider Interface + * + * @package user + * @author Frederic Guillot + */ +interface AvatarProviderInterface +{ + /** + * Render avatar html + * + * @access public + * @param array $user + * @param int $size + */ + public function render(array $user, $size); + + /** + * Determine if the provider is active + * + * @access public + * @param array $user + * @return boolean + */ + public function isActive(array $user); +} |