\Barn2\PTP_LibService_Provider

An object that provides services (instances of Barn2\PTP_Lib\Service).

Summary

Methods
Constants
get_service()
get_services()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get_service()

get_service(string  $id): \Barn2\PTP_Lib\Service

Get the service for the specified ID.

Parameters

string $id

The service ID

Returns

\Barn2\PTP_Lib\Service

The service object

get_services()

get_services(): array

Get the list of services provided.

Returns

array —

The list of service objects.