wiki.techinc.nl/tests/phpunit/includes/RevisionTestModifyableContent.php
Reedy a8b006426e Fix tests/ PSR12.Properties.ConstantVisibility.NotFound
Change-Id: I0beed1a35e046705fb84c9d1f63cf92afd009bb4
2020-05-16 04:30:21 +01:00

23 lines
429 B
PHP

<?php
class RevisionTestModifyableContent extends TextContent {
public const MODEL_ID = "RevisionTestModifyableContent";
public function __construct( $text ) {
parent::__construct( $text, self::MODEL_ID );
}
public function copy() {
return new RevisionTestModifyableContent( $this->mText );
}
public function getText() {
return $this->mText;
}
public function setText( $text ) {
$this->mText = $text;
}
}