Bristol SU Support Package
|
Public Member Functions | |
__construct (Client $client) | |
request ($method, $uri, array $options=[]) | |
test () | |
setSettings (array $settings=[]) | |
getSetting (string $key, $default=null) | |
Static Public Member Functions | |
static | settingsSchema () |
Protected Attributes | |
$client | |
$settings = [] | |
Represents a third party connector
Definition at line 12 of file Connector.php.
BristolSU\Support\Connection\Contracts\Connector::__construct | ( | Client | $client | ) |
Definition at line 32 of file Connector.php.
References BristolSU\Support\Connection\Contracts\Connector\$client, BristolSU\Support\Connection\Contracts\Connector\request(), BristolSU\Support\Connection\Contracts\Connector\settingsSchema(), and BristolSU\Support\Connection\Contracts\Connector\test().
BristolSU\Support\Connection\Contracts\Connector::getSetting | ( | string | $key, |
$default = null |
|||
) |
Get a setting value
string | $key | Key of the setting |
null | $default | Default value if the setting is not found. Defaults to null |
Definition at line 81 of file Connector.php.
References function\settings().
|
abstract |
Prepare and send a request.
You may add authentication, default fields or anything else here. Call $this->client->request and return the result when prepared.
string | $method | Method to use for the request |
string | $uri | URI to use for the request |
array | $options | Options to use for the request. See Guzzle options for more information |
Referenced by BristolSU\Support\Connection\Contracts\Connector\__construct().
BristolSU\Support\Connection\Contracts\Connector::setSettings | ( | array | $settings = [] | ) |
Set the settings on the connector
array | $settings | Settings for the connector |
Definition at line 69 of file Connector.php.
References BristolSU\Support\Connection\Contracts\Connector\$settings, and function\settings().
Referenced by BristolSU\Support\Connection\ConnectorFactory\createFromConnection().
|
staticabstract |
Get the settings schema to use
Referenced by BristolSU\Support\Connection\Contracts\Connector\__construct().
|
abstract |
Check the connection is still connected
Referenced by BristolSU\Support\Connection\Contracts\Connector\__construct().
|
protected |
Definition at line 20 of file Connector.php.
Referenced by BristolSU\Support\Connection\Contracts\Connector\__construct().
|
protected |
Definition at line 27 of file Connector.php.
Referenced by BristolSU\Support\Connection\Contracts\Connector\setSettings().