Partner.php in Lockr 7
File
src/Lockr/Partner.php
View source
<?php
namespace Lockr;
class Partner implements PartnerInterface {
protected $cert;
protected $partner;
public function __construct($cert, $partner) {
$this->cert = $cert;
$this->partner = $partner;
}
public function requestOptions() {
return array(
'cert' => $this->cert,
);
}
public function getReadUri() {
return "https://{$this->partner}.api.lockr.io";
}
public function getWriteUri() {
return "https://{$this->partner}.api.lockr.io";
}
}