wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Application/UseCases/RemovePropertyStatement/RemovePropertyStatementRequest.php

Summary

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

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

use Wikibase\Repo\RestApi\Application\UseCaseRequestValidation\PropertyStatementIdRequest;
use Wikibase\Repo\RestApi\Application\UseCases\RemoveStatement\RemoveStatementRequest;

/**
 * @license GPL-2.0-or-later
 */
class RemovePropertyStatementRequest extends RemoveStatementRequest implements PropertyStatementIdRequest {

    private string $propertyId;

    public function __construct(
        string $propertyId,
        string $statementId,
        array $editTags,
        bool $isBot,
        ?string $comment,
        ?string $username
    ) {
        parent::__construct( $statementId, $editTags, $isBot, $comment, $username );
        $this->propertyId = $propertyId;
    }

    public function getPropertyId(): string {
        return $this->propertyId;
    }

}