/**
  * DownstreamResponse constructor.
  *
  * @param GuzzleResponse $response
  * @param                $tokens
  */
 public function __construct(GuzzleResponse $response, $tokens)
 {
     $this->tokens = is_string($tokens) ? [$tokens] : $tokens;
     parent::__construct($response);
 }
Example #2
0
 /**
  * GroupResponse constructor.
  *
  * @param GuzzleResponse $response
  * @param                $to
  */
 public function __construct(GuzzleResponse $response, $to)
 {
     $this->to = $to;
     parent::__construct($response);
 }
Example #3
0
 /**
  * TopicResponse constructor.
  *
  * @param GuzzleResponse $response
  * @param Topics         $topic
  */
 public function __construct(GuzzleResponse $response, Topics $topic)
 {
     $this->topic = $topic;
     parent::__construct($response);
 }