class DummyContentForTesting extends AbstractContent {
+ const MODEL_ID = "testing";
+
public function __construct( $data ) {
- parent::__construct( "testing" );
+ parent::__construct( self::MODEL_ID );
$this->data = $data;
}
* Returns true if this content is countable as a "real" wiki page, provided
* that it's also in a countable location (e.g. a current revision in the main namespace).
*
- * @param bool $hasLinks If it is known whether this content contains links,
+ * @param bool|null $hasLinks If it is known whether this content contains links,
* provide this information here, to avoid redundant parsing to find out.
* @return bool
*/