Follows-up
820f46964f7968a.
Change-Id: I7866eb7c8bb9c45a24a3c567a7befe3505821873
- * @return \ReadOnlyMode
+ * @return \ConfiguredReadOnlyMode
*/
public function getConfiguredReadOnlyMode() {
return $this->getService( 'ConfiguredReadOnlyMode' );
*/
public function getConfiguredReadOnlyMode() {
return $this->getService( 'ConfiguredReadOnlyMode' );
* @since 1.29
*/
class ReadOnlyMode {
* @since 1.29
*/
class ReadOnlyMode {
+ /** @var ConfiguredReadOnlyMode */
private $configuredReadOnly;
private $configuredReadOnly;
+
+ /** @var LoadBalancer */
private $loadBalancer;
public function __construct( ConfiguredReadOnlyMode $cro, LoadBalancer $loadBalancer ) {
private $loadBalancer;
public function __construct( ConfiguredReadOnlyMode $cro, LoadBalancer $loadBalancer ) {
/**
* Set the read-only mode, which will apply for the remainder of the
* request or until a service reset.
/**
* Set the read-only mode, which will apply for the remainder of the
* request or until a service reset.
+ *
+ * @param string|null $msg
*/
public function setReason( $msg ) {
$this->configuredReadOnly->setReason( $msg );
*/
public function setReason( $msg ) {
$this->configuredReadOnly->setReason( $msg );
* @since 1.29
*/
class ConfiguredReadOnlyMode {
* @since 1.29
*/
class ConfiguredReadOnlyMode {
+
+ /** @var string|bool|null */
+
+ /** @var string|null */
private $overrideReason;
public function __construct( Config $config ) {
private $overrideReason;
public function __construct( Config $config ) {
/**
* Set the read-only mode, which will apply for the remainder of the
* request or until a service reset.
/**
* Set the read-only mode, which will apply for the remainder of the
* request or until a service reset.
+ *
+ * @param string|null $msg
*/
public function setReason( $msg ) {
$this->overrideReason = $msg;
*/
public function setReason( $msg ) {
$this->overrideReason = $msg;