Commit | Line | Data |
---|---|---|
f3b2b889 | 1 | <?php |
a9229942 | 2 | |
f3b2b889 AE |
3 | namespace wcf\data\user\cover\photo; |
4 | ||
5 | /** | |
6 | * Any displayable cover photo type should implement this class. | |
a9229942 TD |
7 | * |
8 | * @author Alexander Ebert | |
9 | * @copyright 2001-2019 WoltLab GmbH | |
10 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
11 | * @package WoltLabSuite\Core\Data\User\Cover\Photo | |
f3b2b889 | 12 | */ |
a9229942 TD |
13 | interface IUserCoverPhoto |
14 | { | |
15 | /** | |
16 | * Deletes this cover photo. | |
17 | */ | |
18 | public function delete(); | |
19 | ||
20 | /** | |
21 | * Returns the physical location of this cover photo. | |
a9229942 | 22 | */ |
d4cf0997 | 23 | public function getLocation(?bool $forceWebP = null): string; |
a9229942 TD |
24 | |
25 | /** | |
26 | * Returns the url to this cover photo. | |
a9229942 | 27 | */ |
d4cf0997 | 28 | public function getURL(?bool $forceWebP = null): string; |
a9229942 TD |
29 | |
30 | /** | |
31 | * Returns the file name of this cover photo. | |
a9229942 | 32 | */ |
d4cf0997 | 33 | public function getFilename(?bool $forceWebP = null): string; |
f3b2b889 | 34 | } |