RepoWrapperGuzzle
in package
implements
RepoWrapperInterface
Description of RepoCurl
Tags
Table of Contents
Interfaces
Properties
- $checkModDate : bool
- $client : Client
- $guzzleOpts : array<string, mixed>
- $repos : array<string|int, Repo>
Methods
- __construct() : mixed
- getModificationTimestamp() : int
- getResourceById() : RepoResourceInterface
- getRepo() : Repo
- resolve() : string
Properties
$checkModDate
private
bool
$checkModDate
$client
private
Client
$client
$guzzleOpts
private
array<string, mixed>
$guzzleOpts
$repos
private
array<string|int, Repo>
$repos
= []
Methods
__construct()
public
__construct([bool $checkModificationDate = false ][, array<string, mixed> $guzzleOpts = [] ]) : mixed
Parameters
- $checkModificationDate : bool = false
- $guzzleOpts : array<string, mixed> = []
getModificationTimestamp()
public
getModificationTimestamp(string $id) : int
Parameters
- $id : string
Return values
int —return value of PHP_INT_MAX means the resource's modification date wasn't checked
getResourceById()
public
getResourceById(string $id[, SearchConfig|null $config = null ]) : RepoResourceInterface
Parameters
- $id : string
- $config : SearchConfig|null = null
Return values
RepoResourceInterfacegetRepo()
private
getRepo(string $uri) : Repo
Parameters
- $uri : string
Return values
Reporesolve()
private
resolve(string $id) : string
Parameters
- $id : string