Documentation

ServiceBuilder
in package

This object is a factory for building Service objects.

Table of Contents

factory()  : ServiceInterface
Simple factory method for creating services.

Methods

factory()

Simple factory method for creating services.

public static factory(Client $client, string $class[, array<string|int, mixed> $options = array() ]) : ServiceInterface
Parameters
$client : Client

The HTTP client object

$class : string

The class name of the service

$options : array<string|int, mixed> = array()

The options.

Tags
throws
ServiceException
Return values
ServiceInterface

Search results