Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / like / ILikeObjectTypeProvider.class.php
CommitLineData
00b6f956 1<?php
a9229942 2
00b6f956 3namespace wcf\data\like;
a9229942 4
00b6f956
MW
5use wcf\data\like\object\ILikeObject;
6use 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
16interface 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}