Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param Database         $database        Database to which this collection belongs
  * @param \RiakCollection $riakCollection RiakCollection instance being wrapped
  * @param EventManager     $evm             EventManager instance
  * @param integer          $numRetries      Number of times to retry queries
  * @param callable         $loggerCallable  The logger callable
  */
 public function __construct(Database $database, \RiakCollection $riakCollection, EventManager $evm, $numRetries, $loggerCallable)
 {
     if (!is_callable($loggerCallable)) {
         throw new \InvalidArgumentException('$loggerCallable must be a valid callback');
     }
     $this->loggerCallable = $loggerCallable;
     parent::__construct($database, $riakCollection, $evm, $numRetries);
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param Database     $database    Database to which this collection belongs
  * @param \RiakGridFS $riakGridFS RiakGridFS instance being wrapped
  * @param EventManager $evm         EventManager instance
  * @param integer      $numRetries  Number of times to retry queries
  */
 public function __construct(Database $database, \RiakGridFS $riakGridFS, EventManager $evm, $numRetries = 0)
 {
     parent::__construct($database, $riakGridFS, $evm, $numRetries);
 }