Segment_Consumer::__construct PHP Method

__construct() public method

Store our secret and options as part of this consumer
public __construct ( string $secret, array $options = [] )
$secret string
$options array
    public function __construct($secret, $options = array())
    {
        $this->secret = $secret;
        $this->options = $options;
    }

Usage Example

コード例 #1
0
 /**
  * Store our secret and options as part of this consumer
  * @param string $secret
  * @param array  $options
  */
 public function __construct($secret, $options = array())
 {
     parent::__construct($secret, $options);
     if (isset($options["max_queue_size"])) {
         $this->max_queue_size = $options["max_queue_size"];
     }
     if (isset($options["batch_size"])) {
         $this->batch_size = $options["batch_size"];
     }
     $this->queue = array();
 }
All Usage Examples Of Segment_Consumer::__construct