Sometimes the code expects a specific subclass as it calls a specific
method that only exists in this subclass. If this is not the case, all
the code needs to know is that it got some special page.
Some of these constructors should be changed to expect a IContextSource
instead of a special page. But this is for another patch. Here in this
patch I intentionally touch documentation only.
Change-Id: I33bae9641a8871f359edccacf88f09cfe8e83139
*/
class NewPagesPager extends ReverseChronologicalPager {
- // Stored opts
+ /**
+ * @var FormOptions
+ */
protected $opts;
/**
- * @var HTMLForm
+ * @var SpecialNewpages
*/
protected $mForm;
+ /**
+ * @param SpecialNewpages $form
+ * @param FormOptions $opts
+ */
public function __construct( $form, FormOptions $opts ) {
parent::__construct( $form->getContext() );
$this->mForm = $form;
private $linkRenderer;
/**
- * @param SpecialProtectedpages $form
+ * @param SpecialPage $form
* @param array $conds
* @param string $type
* @param string $level