RepoWrapperRepoInterface
in package
implements
RepoWrapperInterface
Description of RepoWrapperRepoInterface
Tags
Table of Contents
Interfaces
Properties
- $checkModDate : bool
- $configPath : string
- $repo : RepoInterface
Methods
- __construct() : mixed
- getModificationTimestamp() : int
- getResourceById() : RepoResourceInterface
- assureRepo() : void
Properties
$checkModDate
private
bool
$checkModDate
$configPath
private
string
$configPath
$repo
private
RepoInterface
$repo
Methods
__construct()
public
__construct(RepoInterface|string $repoOrConfigPath[, bool $checkModificationDate = false ]) : mixed
Parameters
- $repoOrConfigPath : RepoInterface|string
- $checkModificationDate : bool = false
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
RepoResourceInterfaceassureRepo()
private
assureRepo() : void