RevisionTestModifyableContent.php 422 B

123456789101112131415161718192021222324
  1. <?php
  2. class RevisionTestModifyableContent extends TextContent {
  3. const MODEL_ID = "RevisionTestModifyableContent";
  4. public function __construct( $text ) {
  5. parent::__construct( $text, self::MODEL_ID );
  6. }
  7. public function copy() {
  8. return new RevisionTestModifyableContent( $this->mText );
  9. }
  10. public function getText() {
  11. return $this->mText;
  12. }
  13. public function setText( $text ) {
  14. $this->mText = $text;
  15. }
  16. }