NullPartner.php in Lockr 7.2
File
vendor/lockr/lockr-client/src/NullPartner.php
View source
<?php
namespace Lockr;
class NullPartner implements PartnerInterface {
protected $region;
public function __construct($region = 'us') {
$this->region = $region;
}
public function requestOptions() {
return array();
}
public function getReadUri() {
if ($this->region != 'us') {
return "https://{$this->region}.custom.api.lockr.io";
}
return "https://custom.api.lockr.io";
}
public function getWriteUri() {
if ($this->region != 'us') {
return "https://{$this->region}.custom.api.lockr.io";
}
return "https://custom.api.lockr.io";
}
public function getAccountingUri() {
return "https://custom.api.lockr.io";
}
}