Network
extends Endpoint
in package
Tags
Table of Contents
Constants
- PATH = '/network'
Properties
Methods
- __construct() : mixed
- addRemote() : Task
- Add a remote to the network.
- get() : RemoteConfig|null>}
- initialize() : Task
- Initialize a network with the current instance as leader.
- removeRemote() : Task
- Remove a remote from the network.
- show() : array<string|int, mixed>|null
Constants
PATH
protected
mixed
PATH
= '/network'
Properties
$apiKey
protected
string|null
$apiKey
$http
protected
Http
$http
Methods
__construct()
public
__construct(Http $http[, string|null $apiKey = null ]) : mixed
Parameters
- $http : Http
- $apiKey : string|null = null
addRemote()
Add a remote to the network.
public
addRemote(non-empty-string $name, RemoteConfig $remote) : Task
Parameters
- $name : non-empty-string
- $remote : RemoteConfig
Return values
Taskget()
public
get() : RemoteConfig|null>}
Return values
RemoteConfig|null>}initialize()
Initialize a network with the current instance as leader.
public
initialize(RemoteConfig>} $options) : Task
Parameters
- $options : RemoteConfig>}
Return values
TaskremoveRemote()
Remove a remote from the network.
public
removeRemote(non-empty-string $name) : Task
Parameters
- $name : non-empty-string
Return values
Taskshow()
public
show() : array<string|int, mixed>|null