wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Application/UseCases/GetItemStatement/GetItemStatementRequest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare( strict_types=1 );

namespace Wikibase\Repo\RestApi\Application\UseCases\GetItemStatement;

use Wikibase\Repo\RestApi\Application\UseCaseRequestValidation\ItemStatementIdRequest;
use Wikibase\Repo\RestApi\Application\UseCases\GetStatement\GetStatementRequest;

/**
 * @license GPL-2.0-or-later
 */
class GetItemStatementRequest extends GetStatementRequest implements ItemStatementIdRequest {

    private string $itemId;

    public function __construct( string $propertyId, string $statementId ) {
        parent::__construct( $statementId );
        $this->itemId = $propertyId;
    }

    public function getItemId(): string {
        return $this->itemId;
    }
}