Flexihash\Flexihash::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( Flexihash\Hasher\HasherInterface $hasher = null, integer $replicas = null )
$hasher Flexihash\Hasher\HasherInterface
$replicas integer Amount of positions to hash each target to.
    public function __construct(HasherInterface $hasher = null, $replicas = null)
    {
        $this->hasher = $hasher ? $hasher : new Crc32Hasher();
        if (!empty($replicas)) {
            $this->replicas = $replicas;
        }
    }