From: Aaron Schulz Date: Wed, 28 Sep 2016 22:50:12 +0000 (-0700) Subject: Make LBFactory return type docs more specific to avoid IDEA warnings X-Git-Tag: 1.31.0-rc.0~5279^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/One?a=commitdiff_plain;h=5381e14087cda3cd708009a211bec97213ab16fc;p=lhc%2Fweb%2Fwiklou.git Make LBFactory return type docs more specific to avoid IDEA warnings Change-Id: I5fa6ed87e35f3b8ee17e576faf5d00763229dd4b --- 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 *