Commit ea14ae06 authored by Jean-Baptiste Noblot's avatar Jean-Baptiste Noblot

Fix Sharding/ Docs

parent 5cefa4d9
...@@ -54,7 +54,7 @@ class PoolingShardManager implements ShardManager ...@@ -54,7 +54,7 @@ class PoolingShardManager implements ShardManager
} }
/** /**
* @return void * {@inheritDoc}
*/ */
public function selectGlobal() public function selectGlobal()
{ {
...@@ -63,9 +63,7 @@ class PoolingShardManager implements ShardManager ...@@ -63,9 +63,7 @@ class PoolingShardManager implements ShardManager
} }
/** /**
* @param string $distributionValue * {@inheritDoc}
*
* @return void
*/ */
public function selectShard($distributionValue) public function selectShard($distributionValue)
{ {
...@@ -75,7 +73,7 @@ class PoolingShardManager implements ShardManager ...@@ -75,7 +73,7 @@ class PoolingShardManager implements ShardManager
} }
/** /**
* @return string|null * {@inheritDoc}
*/ */
public function getCurrentDistributionValue() public function getCurrentDistributionValue()
{ {
...@@ -83,7 +81,7 @@ class PoolingShardManager implements ShardManager ...@@ -83,7 +81,7 @@ class PoolingShardManager implements ShardManager
} }
/** /**
* @return array * {@inheritDoc}
*/ */
public function getShards() public function getShards()
{ {
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
namespace Doctrine\DBAL\Sharding\SQLAzure; namespace Doctrine\DBAL\Sharding\SQLAzure;
use Doctrine\DBAL\Sharding\ShardManager;
use Doctrine\DBAL\Sharding\ShardingException;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Sharding\ShardingException;
use Doctrine\DBAL\Sharding\ShardManager;
use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Type;
/** /**
...@@ -57,7 +57,7 @@ class SQLAzureShardManager implements ShardManager ...@@ -57,7 +57,7 @@ class SQLAzureShardManager implements ShardManager
private $conn; private $conn;
/** /**
* @var string * @var string|null
*/ */
private $currentDistributionValue; private $currentDistributionValue;
......
...@@ -63,7 +63,7 @@ interface ShardManager ...@@ -63,7 +63,7 @@ interface ShardManager
/** /**
* Gets the distribution value currently used for sharding. * Gets the distribution value currently used for sharding.
* *
* @return string * @return string|null
*/ */
function getCurrentDistributionValue(); function getCurrentDistributionValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment