| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- /**
- * Copyright (C) Alibaba Cloud Computing
- * All rights reserved
- */
- require_once realpath(dirname(__FILE__) . '/Response.php');
- /**
- * The response of the ListTopics API from log service.
- *
- * @author log service dev
- */
- class Aliyun_Log_Models_ListTopicsResponse extends Aliyun_Log_Models_Response {
- /**
- * @var integer the number of all the topics from the response
- */
- private $count;
- /**
- * @var array topics list
- */
- private $topics;
- /**
- * @var string/null the next token from the response. If there is no more topic to list, it will return None
- */
- private $nextToken;
-
- /**
- * Aliyun_Log_Models_ListTopicsResponse constructor
- *
- * @param array $resp
- * ListTopics HTTP response body
- * @param array $header
- * ListTopics HTTP response header
- */
- public function __construct($resp, $header) {
- parent::__construct ( $header );
- $this->count = $header['x-log-count'];
- $this->topics = $resp ;
- $this->nextToken = isset ( $header['x-log-nexttoken'] ) ? $header['x-log-nexttoken'] : NULL;
- }
-
- /**
- * Get the number of all the topics from the response
- *
- * @return integer the number of all the topics from the response
- */
- public function getCount() {
- return $this->count;
- }
-
- /**
- * Get all the topics from the response
- *
- * @return array topics list
- */
- public function getTopics() {
- return $this->topics;
- }
-
- /**
- * Return the next token from the response. If there is no more topic to list, it will return None
- *
- * @return string/null next token used to list more topics
- */
- public function getNextToken() {
- return $this->nextToken;
- }
- }
|