public function Lockr::getInfo in Lockr 7.3
Gets client info
Return value
array
File
- vendor/
lockr/ lockr/ src/ Lockr.php, line 122
Class
Namespace
LockrCode
public function getInfo() {
$query = <<<'EOQ'
{
self {
env
label
keyring {
id
label
hasCreditCard
trialEnd
}
auth {
... on LockrCert {
expires
}
}
}
}
EOQ;
$t0 = microtime(true);
$data = $this->client
->query([
'query' => $query,
]);
$t1 = microtime(true);
$this->client
->getStats()
->lockrCallCompleted('get_info', $t1 - $t0);
return $data['self'];
}