Add doc-typehints to class properties found by the PropertyDocumentation sniff to improve the documentation. Once the sniff is enabled it avoids that new code is missing type declarations. This is focused on documentation and does not change code. Change-Id: I48014b6464f3e7e2b7f083e67f517af0b1a9367e
25 lines
395 B
PHP
25 lines
395 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Tests\Api;
|
|
|
|
use ApiQueryBase;
|
|
|
|
class MockApiQueryBase extends ApiQueryBase {
|
|
/** @var string */
|
|
private $name;
|
|
|
|
public function execute() {
|
|
}
|
|
|
|
public function __construct( $name = 'mock' ) {
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getModuleName() {
|
|
return $this->name;
|
|
}
|
|
|
|
public function getModulePath() {
|
|
return 'query+' . $this->getModuleName();
|
|
}
|
|
}
|