repo/rest-api/src/Domain/Services/PermissionChecker.php
<?php declare( strict_types=1 );
namespace Wikibase\Repo\RestApi\Domain\Services;
use Wikibase\DataModel\Entity\EntityId;
use Wikibase\Repo\RestApi\Domain\Model\User;
use Wikibase\Repo\RestApi\Domain\ReadModel\PermissionCheckResult;
/**
* @license GPL-2.0-or-later
*/
interface PermissionChecker {
public function canCreateItem( User $user ): PermissionCheckResult;
public function canCreateProperty( User $user ): PermissionCheckResult;
public function canEdit( User $user, EntityId $id ): PermissionCheckResult;
}