class CantonManager (View source)

Properties

$search CantonSearch Instance.
protected ZipcodeSearch $zipcodeSearch ZipcodeSearch Instance.

Methods

__construct()

No description

getByAppreviation(string $abbreviation)

Get Canton by abbreviation.

getByName(string $name)

Get Canton by Name.

getByZipcode(int $zipcode)

Get Canton by Zipcode.

Details

__construct()

Canton getByAppreviation(string $abbreviation)

Get Canton by abbreviation.

Parameters

string $abbreviation

Return Value

Canton

Exceptions

Exception Throws Exception if no Canton was found

Canton getByName(string $name)

Get Canton by Name.

Parameters

string $name

Return Value

Canton

Exceptions

Exception Throws Exception if not Canton was found

Canton getByZipcode(int $zipcode)

Get Canton by Zipcode.

Parameters

int $zipcode

Return Value

Canton

Exceptions

Exception if not Canton was found