wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Domain/Model/SitelinksEditSummary.php

Summary

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

namespace Wikibase\Repo\RestApi\Domain\Model;

/**
 * @license GPL-2.0-or-later
 */
class SitelinksEditSummary implements EditSummary {

    private string $editAction;
    private ?string $userComment;

    public static function newPatchSummary( ?string $userComment ): self {
        $summary = new self();
        $summary->editAction = self::PATCH_ACTION;
        $summary->userComment = $userComment;

        return $summary;
    }

    public function getEditAction(): string {
        return $this->editAction;
    }

    public function getUserComment(): ?string {
        return $this->userComment;
    }

}