src/Client.php
public function timeToLive($id, $keys = false)
    {
        $params = [
            'ID' => $id,
            'keys' => $keys,
        ];

        $body = $this->request(self::URI_TIMETOLIVE, $params);

        if (isset($body['keys'])) {
            $body['keys'] = array_map(function($value) {
                return base64_decode($value);
            }, $body['keys']);
        }

        return $body;
    }
public function timeToLive($id, $keys = false)
    {
        $params = [
            'ID' => $id,
            'keys' => $keys,
        ];

        $body = $this->request(self::URI_TIMETOLIVE, $params);

        if (isset($body['keys'])) {
            $body['keys'] = array_map(function($value) {
                return base64_decode($value);
            }, $body['keys']);
        }

        return $body;
    }
public function timeToLive ( $ id , $ keys = false ) { $ params = [ 'ID' => $ id , 'keys' => $ keys , ] ; $ body = $ this -> request ( self :: URI_TIMETOLIVE , $ params ) ; if ( isset ( $ body [ 'keys' ] ) ) { $ body [ 'keys' ] = array_map ( function ( $ value ) { return base64_decode ( $ value ) ; } , $ body [ 'keys' ] ) ; } return $ body ; }
retrieves lease information.

@param int $id ID is the lease ID for the lease.
@param bool|false $keys
@return array
@throws BadResponseException
retrieves lease information .