Esempio n. 1
0
 /**
  * ResponseCollection constructor.
  *
  * @param GuzzleResponseInterface $response
  */
 public function __construct(GuzzleResponseInterface $response)
 {
     parent::__construct($response);
     $this->count = (int) $this->popField('objectsCount');
     $this->total = (int) $this->popField('totalCount');
     $this->nextCursor = $this->popField('nextCursorId');
     $this->results = (array) $this->popField('results');
 }