SetaPDF_Signer_InformationResolver_HttpCurlResolver Resolver for HTTP(s) using CURL functions.

File: /SetaPDF v2/Signer/InformationResolver/HttpCurlResolver.php

Class hierarchy

Implements

Summary

Properties

$_curlOptions

Curl options.


Methods

__construct()

public SetaPDF_Signer_InformationResolver_HttpCurlResolver::__construct (
[ array $curlOptions = array ( ) ]
)

The constructor.

Parameters
$curlOptions : array

See https://www.php.net/curl-setopt

accepts()

Parameters
$uri : string
 

getCurlOptions()

Get the cURL transfer options.

getLogger()

Get the logger instance.

If no logger instance was passed before a new instance of SetaPDF_Signer_ValidationRelatedInfo_Logger is returned.

resolve()

public SetaPDF_Signer_InformationResolver_HttpCurlResolver::resolve (
[ string $uri = null ]
): array

Parameters
$uri : string
 
Return Values

An array where index 0 is the content-type and 1 is the content itself.

Exceptions

Throws SetaPDF_Signer_Exception

setCurlOptions()

Set options for the cURL transfer.

Parameters
$curlOptions : array

The curl options.

See