Make LBFactory return type docs more specific to avoid IDEA warnings
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 28 Sep 2016 22:50:12 +0000 (15:50 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 28 Sep 2016 22:50:12 +0000 (15:50 -0700)
Change-Id: I5fa6ed87e35f3b8ee17e576faf5d00763229dd4b

includes/libs/rdbms/lbfactory/LBFactory.php

index 0635d04..f5d57c4 100644 (file)
@@ -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
         *