2018-07-20 21:37:58 +00:00
|
|
|
<?php
|
2020-09-21 12:25:50 +00:00
|
|
|
/*
|
2024-02-02 18:27:50 +00:00
|
|
|
* Copyright (c) 2020-2024. The Nextcloud Bookmarks contributors.
|
2020-09-21 12:25:50 +00:00
|
|
|
*
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
|
|
|
|
*/
|
2019-12-28 16:41:31 +00:00
|
|
|
|
2019-10-26 12:10:49 +00:00
|
|
|
namespace OCA\Bookmarks\Contract;
|
2018-07-20 21:37:58 +00:00
|
|
|
|
2019-10-26 12:10:49 +00:00
|
|
|
use OCA\Bookmarks\Db\Bookmark;
|
|
|
|
|
|
|
|
interface IBookmarkPreviewer {
|
2018-07-20 21:37:58 +00:00
|
|
|
/**
|
2019-10-26 12:10:49 +00:00
|
|
|
* @param Bookmark $bookmark
|
2020-04-05 17:05:48 +00:00
|
|
|
* @return IImage|null
|
2018-07-20 21:37:58 +00:00
|
|
|
*/
|
2020-04-05 17:05:48 +00:00
|
|
|
public function getImage($bookmark): ?IImage;
|
2018-07-20 21:37:58 +00:00
|
|
|
}
|