public function __construct(InternalDataStore $dataStore = null, \stdClass $properties = null, array $options = array()) { parent::__construct(); $this->dataStore = $dataStore; $this->setProperties($properties); $this->options = $options; }
public function __construct($offset, $limit, array $items) { parent::__construct(); $this->items = $items; $this->limit = $limit; $this->offset = $offset; }
/** * Constructs the Order object. * @param null|array $properties optional argument containing * the property names. * @param null|string $sort optional property to determine the sorting (asc or desc). */ public function __construct($properties = null, $sort = null) { parent::__construct(); $this->properties = $properties ? $properties : array(); if (is_array($properties)) { foreach ($properties as $prop) { $this->addProperty($prop); } } $this->setSort($sort); }
public function __construct() { parent::__construct(); $this->properties = array(); $this->filter = ''; }
/** * Instantiates a new Client instance that will communicate with the Stormpath REST API. * See the class-level PHPDoc for a usage example. * * @param $apiKey the Stormpath account API Key that will be used to authenticate the client with * Stormpath's REST API. * * @param $baseUrl optional parameter for specifying the base URL when not using the default one * (https://api.stormpath.com/v1). */ public function __construct(ApiKey $apiKey, $cacheManager, $cacheManagerOptions, $baseUrl = null, RequestSigner $requestSigner = null) { parent::__construct(); self::$cacheManager = $cacheManager; self::$cacheManagerOptions = $cacheManagerOptions; $requestExecutor = new HttpClientRequestExecutor($requestSigner); $this->cacheManagerInstance = new self::$cacheManager($cacheManagerOptions); $this->dataStore = new DefaultDataStore($requestExecutor, $apiKey, $this->cacheManagerInstance, $baseUrl); }