From 5381e14087cda3cd708009a211bec97213ab16fc Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 28 Sep 2016 15:50:12 -0700 Subject: [PATCH] Make LBFactory return type docs more specific to avoid IDEA warnings Change-Id: I5fa6ed87e35f3b8ee17e576faf5d00763229dd4b --- includes/libs/rdbms/lbfactory/LBFactory.php | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/includes/libs/rdbms/lbfactory/LBFactory.php b/includes/libs/rdbms/lbfactory/LBFactory.php index 0635d04c7b..f5d57c4c0d 100644 --- a/includes/libs/rdbms/lbfactory/LBFactory.php +++ b/includes/libs/rdbms/lbfactory/LBFactory.php @@ -135,6 +135,36 @@ abstract class LBFactory implements ILBFactory { $this->commitMasterChanges( __METHOD__ ); // sanity } + /** + * @see ILBFactory::newMainLB() + * @param bool $domain + * @return LoadBalancer + */ + abstract public function newMainLB( $domain = false ); + + /** + * @see ILBFactory::getMainLB() + * @param bool $domain + * @return mixed + */ + abstract public function getMainLB( $domain = false ); + + /** + * @see ILBFactory::newExternalLB() + * @param string $cluster + * @param bool $domain + * @return LoadBalancer + */ + abstract public function newExternalLB( $cluster, $domain = false ); + + /** + * @see ILBFactory::getExternalLB() + * @param string $cluster + * @param bool $domain + * @return mixed + */ + abstract public function getExternalLB( $cluster, $domain = false ); + /** * Call a method of each tracked load balancer * -- 2.20.1