repo/rest-api/src/Domain/Services/ItemStatementsRetriever.php
<?php declare( strict_types=1 );
namespace Wikibase\Repo\RestApi\Domain\Services;
use Wikibase\DataModel\Entity\ItemId;
use Wikibase\DataModel\Entity\PropertyId;
use Wikibase\Repo\RestApi\Domain\ReadModel\StatementList;
/**
* @license GPL-2.0-or-later
*/
interface ItemStatementsRetriever {
public function getStatements( ItemId $itemId, ?PropertyId $propertyId = null ): ?StatementList;
}