Commit | Line | Data |
---|---|---|
00b6f956 | 1 | <?php |
a9229942 | 2 | |
00b6f956 | 3 | namespace wcf\data\like; |
a9229942 | 4 | |
00b6f956 MW |
5 | use wcf\data\like\object\ILikeObject; |
6 | use wcf\data\object\type\IObjectTypeProvider; | |
7 | ||
8 | /** | |
9 | * Default interface for like object type providers. | |
a9229942 TD |
10 | * |
11 | * @author Alexander Ebert | |
12 | * @copyright 2001-2019 WoltLab GmbH | |
13 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
14 | * @package WoltLabSuite\Core\Data\Like | |
00b6f956 | 15 | */ |
a9229942 TD |
16 | interface ILikeObjectTypeProvider extends IObjectTypeProvider |
17 | { | |
18 | /** | |
19 | * Returns true if the active user can access the given likeable object. | |
20 | * | |
21 | * @param ILikeObject $object | |
22 | * @return bool | |
23 | */ | |
24 | public function checkPermissions(ILikeObject $object); | |
00b6f956 | 25 | } |