PDFGate's PHP SDK

UrlBuilder
in package

Builds request URLs from domain, path, and optional query parameters.

Table of Contents

Properties

$domain  : string
$path  : string
$query  : array<string, mixed>

Methods

build()  : string
Builds the final URL string from domain, path, and query values.
withDomain()  : self
Sets the base domain (scheme + host) for the URL.
withPath()  : self
Sets the request path and validates it during build.
withQuery()  : self
Sets query parameters to append to the URL.

Properties

$query

private array<string, mixed> $query = array()

Methods

build()

Builds the final URL string from domain, path, and query values.

public build() : string
Return values
string

withDomain()

Sets the base domain (scheme + host) for the URL.

public withDomain(string $domain) : self
Parameters
$domain : string
Return values
self

withPath()

Sets the request path and validates it during build.

public withPath(string $path) : self
Parameters
$path : string
Return values
self

withQuery()

Sets query parameters to append to the URL.

public withQuery(array<string, mixed> $query) : self
Parameters
$query : array<string, mixed>
Return values
self

        
On this page

Search results