<?php

namespace ReloadifyScoped\Doctrine\DBAL\Sharding\ShardChoser;

use ReloadifyScoped\Doctrine\DBAL\Sharding\PoolingShardConnection;
/**
 * Given a distribution value this shard-choser strategy will pick the shard to
 * connect to for retrieving rows with the distribution value.
 *
 * @deprecated
 */
interface ShardChoser
{
    /**
     * Picks a shard for the given distribution value.
     *
     * @param string|int $distributionValue
     *
     * @return string|int
     */
    public function pickShard($distributionValue, PoolingShardConnection $conn);
}
