repo/rest-api/src/Domain/Model/SitelinksEditSummary.php
<?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;
}
}