class Normalizer (View source)

Returns the normalized url components of a page.

Properties

protected string $baseUrl The base url.

Methods

__construct(string $base_url)

Creates Normalizer instance.

array
normalize(PageUrlAnnotation $annotation)

Returns normalized url.

Expectation
shouldReceive(string $name)

No description

Details

__construct(string $base_url)

Creates Normalizer instance.

Parameters

string $base_url The base url.

array normalize(PageUrlAnnotation $annotation)

Returns normalized url.

Parameters

PageUrlAnnotation $annotation The page url annotation.

Return Value

array

Expectation shouldReceive(string $name)

Parameters

string $name

Return Value

Expectation