private function getPublicKeyDetails($publicKey) {
        if (isset($this->publicKeys[$publicKey])) {
            return $this->publicKeys[$publicKey];
        }

        // Not in cache, fetch from database
        $pubkeyInfo = $this->getAclCollection()->findOne([
            'publicKey' => $publicKey,
        ]);

        if (!$pubkeyInfo) {
            return [];
        }

        $data = $this->bsonToArray->toArray($pubkeyInfo->getArrayCopy());

        $this->publicKeys[$publicKey] = $data;

        return $data;
    }
private function getPublicKeyDetails($publicKey) {
        if (isset($this->publicKeys[$publicKey])) {
            return $this->publicKeys[$publicKey];
        }

        // Not in cache, fetch from database
        $pubkeyInfo = $this->getAclCollection()->findOne([
            'publicKey' => $publicKey,
        ]);

        if (!$pubkeyInfo) {
            return [];
        }

        $data = $this->bsonToArray->toArray($pubkeyInfo->getArrayCopy());

        $this->publicKeys[$publicKey] = $data;

        return $data;
    }
private function getPublicKeyDetails ( $ publicKey ) { if ( isset ( $ this -> publicKeys [ $ publicKey ] ) ) { return $ this -> publicKeys [ $ publicKey ] ; } // Not in cache, fetch from database $ pubkeyInfo = $ this -> getAclCollection ( ) -> findOne ( [ 'publicKey' => $ publicKey , ] ) ; if ( ! $ pubkeyInfo ) { return [ ] ; } $ data = $ this -> bsonToArray -> toArray ( $ pubkeyInfo -> getArrayCopy ( ) ) ; $ this -> publicKeys [ $ publicKey ] = $ data ; return $ data ; }
Get details for a given public key

@param  string $publicKey
@return array
Get details for a given public key