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