repo/rest-api/src/Application/UseCases/GetItemStatements/GetItemStatementsRequest.php
<?php declare( strict_types=1 );
namespace Wikibase\Repo\RestApi\Application\UseCases\GetItemStatements;
use Wikibase\Repo\RestApi\Application\UseCaseRequestValidation\ItemIdRequest;
use Wikibase\Repo\RestApi\Application\UseCaseRequestValidation\PropertyIdFilterRequest;
use Wikibase\Repo\RestApi\Application\UseCaseRequestValidation\UseCaseRequest;
/**
* @license GPL-2.0-or-later
*/
class GetItemStatementsRequest implements UseCaseRequest, ItemIdRequest, PropertyIdFilterRequest {
private string $itemId;
private ?string $propertyIdFilter;
public function __construct( string $itemId, ?string $propertyIdFilter = null ) {
$this->itemId = $itemId;
$this->propertyIdFilter = $propertyIdFilter;
}
public function getItemId(): string {
return $this->itemId;
}
public function getPropertyIdFilter(): ?string {
return $this->propertyIdFilter;
}
}