Change-Id: Iecd8535b04072823a6f4efe33697148f4d20118e
* Set the Title object
*
* @param Title $t
- * @throws MWException
*/
- public function setTitle( $t ) {
- if ( $t !== null && !$t instanceof Title ) {
- throw new MWException( __METHOD__ . " expects an instance of Title" );
- }
+ public function setTitle( Title $t ) {
$this->title = $t;
}
* Set the Title object
*
* @param Title $t
- * @throws MWException
*/
- public function setTitle( $t ) {
- if ( $t !== null && !$t instanceof Title ) {
- throw new MWException( __METHOD__ . " expects an instance of Title" );
- }
+ public function setTitle( Title $t ) {
$this->title = $t;
// Erase the WikiPage so a new one with the new title gets created.
$this->wikipage = null;