class NullPartner in Lockr 7.2
Hierarchy
- class \Lockr\NullPartner implements PartnerInterface
Expanded class hierarchy of NullPartner
1 file declares its use of NullPartner
- lockr.module in ./
lockr.module - Hook implementations and callbacks for lockr.
File
- vendor/
lockr/ lockr-client/ src/ NullPartner.php, line 6
Namespace
LockrView source
class NullPartner implements PartnerInterface {
/**
* @var string The Lockr region.
*/
protected $region;
/**
* Constucts the partner.
*/
public function __construct($region = 'us') {
$this->region = $region;
}
/**
* {@inheritdoc}
*/
public function requestOptions() {
return array();
}
/**
* {@inheritdoc}
*/
public function getReadUri() {
if ($this->region != 'us') {
return "https://{$this->region}.custom.api.lockr.io";
}
return "https://custom.api.lockr.io";
}
/**
* {@inheritdoc}
*/
public function getWriteUri() {
if ($this->region != 'us') {
return "https://{$this->region}.custom.api.lockr.io";
}
return "https://custom.api.lockr.io";
}
/**
* {@inheritdoc}
*/
public function getAccountingUri() {
return "https://custom.api.lockr.io";
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NullPartner:: |
protected | property | ||
NullPartner:: |
public | function | ||
NullPartner:: |
public | function |
Gets the partner base URI for reading data. Overrides PartnerInterface:: |
|
NullPartner:: |
public | function |
Gets the partner base URI for writing data. Overrides PartnerInterface:: |
|
NullPartner:: |
public | function |
Adds required request options to the request for partner authentication. Overrides PartnerInterface:: |
|
NullPartner:: |
public | function | Constucts the partner. |