* prohibited from editing any page on the site (other than their own talk
* page).
*
+ * @since 1.33
* @param null|bool $x
* @return bool
*/
/**
* Get block information used in different block error messages
*
+ * @since 1.33
* @param IContextSource $context
* @return array
*/
* Getting the restrictions will perform a database query if the restrictions
* are not already loaded.
*
+ * @since 1.33
* @return Restriction[]
*/
public function getRestrictions() {
/**
* Set Restrictions.
*
+ * @since 1.33
* @param Restriction[] $restrictions
- *
* @return self
*/
public function setRestrictions( array $restrictions ) {
/**
* Retrieves the restrictions from the database by block id.
*
+ * @since 1.33
* @param int|array $blockId
* @param IDatabase|null $db
* @return Restriction[]
/**
* Inserts the restrictions into the database.
*
+ * @since 1.33
* @param Restriction[] $restrictions
* @return bool
*/
* Updates the list of restrictions. This method does not allow removing all
* of the restrictions. To do that, use ::deleteByBlockId().
*
+ * @since 1.33
* @param Restriction[] $restrictions
* @return bool
*/
/**
* Updates the list of restrictions by parent id.
*
+ * @since 1.33
* @param int $parentBlockId
* @param Restriction[] $restrictions
* @return bool
/**
* Delete the restrictions.
*
+ * @since 1.33
* @param Restriction[]|null $restrictions
* @throws MWException
* @return bool
/**
* Delete the restrictions by Block ID.
*
+ * @since 1.33
* @param int|array $blockId
* @throws MWException
* @return bool
/**
* Delete the restrictions by Parent Block ID.
*
+ * @since 1.33
* @param int|array $parentBlockId
* @throws MWException
* @return bool
* equality check as the restrictions do not have to contain the same block
* ids.
*
+ * @since 1.33
* @param Restriction[] $a
* @param Restriction[] $b
* @return bool
/**
* Set the blockId on a set of restrictions and return a new set.
*
+ * @since 1.33
* @param int $blockId
* @param Restriction[] $restrictions
* @return Restriction[]
/**
* Create Restriction.
*
+ * @since 1.33
* @param int $blockId
* @param int $value
*/
/**
* Set the title.
*
+ * @since 1.33
* @param \Title $title
* @return self
*/
/**
* Get Title.
*
+ * @since 1.33
* @return \Title|null
*/
public function getTitle() {
/**
* Gets the id of the block.
*
+ * @since 1.33
* @return int
*/
public function getBlockId();
/**
* Sets the id of the block.
*
+ * @since 1.33
* @param int $blockId
* @return self
*/
/**
* Gets the value of the restriction.
*
+ * @since 1.33
* @return int
*/
public function getValue();
/**
* Gets the type of restriction
*
+ * @since 1.33
* @return string
*/
public function getType();
/**
* Gets the id of the type of restriction. This id is used in the database.
*
+ * @since 1.33
* @return string
*/
public function getTypeId();
/**
* Creates a new Restriction from a database row.
*
+ * @since 1.33
* @param \stdClass $row
* @return self
*/
/**
* Convert a restriction object into a row array for insertion.
*
+ * @since 1.33
* @return array
*/
public function toRow();
/**
* Determine if a restriction matches a given title.
*
+ * @since 1.33
* @param \Title $title
* @return bool
*/
/**
* Determine if a restriction equals another restriction.
*
+ * @since 1.33
* @param Restriction $other
* @return bool
*/
/**
* Create a unique hash of the block restriction based on the type and value.
*
+ * @since 1.33
* @return string
*/
public function getHash();
/**
* Get whether the user is blocked from using Special:Upload
*
+ * @since 1.33
* @return bool
*/
public function isBlockedFromUpload() {