/** * @param HashGeneratorInterface $hashGenerator Hash generator instance. */ public function __construct(HashGeneratorInterface $hashGenerator = null) { parent::__construct(); $this->hashGenerator = $hashGenerator ?: new CRC16(); }
/** * @param DistributorInterface $distributor Optional distributor instance. */ public function __construct(DistributorInterface $distributor = null) { parent::__construct(); $this->distributor = $distributor ?: new HashRing(); }