wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Application/UseCases/GetStatement/GetStatementRequest.php

Summary

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

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

use Wikibase\Repo\RestApi\Application\UseCaseRequestValidation\StatementIdRequest;
use Wikibase\Repo\RestApi\Application\UseCaseRequestValidation\UseCaseRequest;

/**
 * @license GPL-2.0-or-later
 */
class GetStatementRequest implements UseCaseRequest, StatementIdRequest {

    private string $statementId;

    public function __construct( string $statementId ) {
        $this->statementId = $statementId;
    }

    public function getStatementId(): string {
        return $this->statementId;
    }
}