__construct() public method

public __construct ( )
コード例 #1
0
ファイル: predis.php プロジェクト: sohel4r/wordpress_4_1_1
 /**
  * @param HashGeneratorInterface $hashGenerator Hash generator instance.
  */
 public function __construct(HashGeneratorInterface $hashGenerator = null)
 {
     parent::__construct();
     $this->hashGenerator = $hashGenerator ?: new CRC16();
 }
コード例 #2
0
ファイル: PredisStrategy.php プロジェクト: hexcode007/yfcms
 /**
  * @param DistributorInterface $distributor Optional distributor instance.
  */
 public function __construct(DistributorInterface $distributor = null)
 {
     parent::__construct();
     $this->distributor = $distributor ?: new HashRing();
 }