public function __construct(CodesWholesaleApi $oauthApi, $baseUrl, $clientHeaders) { parent::__construct(); $requestExecutor = new HttpClientRequestExecutor($oauthApi, $clientHeaders); $this->dataStore = new DefaultDataStore($requestExecutor, $baseUrl); self::$instance = $this; }
public function __construct($offset, $limit, array $items) { parent::__construct(); $this->items = $items; $this->limit = $limit; $this->offset = $offset; }