ContainerParametersResourceChecker
in package
implements
ResourceCheckerInterface
Tags
Interfaces, Classes and Traits
- ResourceCheckerInterface
- Interface for ResourceCheckers.
Table of Contents
- $container : ContainerInterface
- __construct() : mixed
- isFresh() : bool
- Validates the resource.
- supports() : bool
- Queries the ResourceChecker whether it can validate a given resource or not.
Properties
$container
private
ContainerInterface
$container
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
Return values
mixed —isFresh()
Validates the resource.
public
isFresh(ResourceInterface $resource, int $timestamp) : bool
Parameters
- $resource : ResourceInterface
- $timestamp : int
-
The timestamp at which the cache associated with this resource was created
Return values
bool —supports()
Queries the ResourceChecker whether it can validate a given resource or not.
public
supports(ResourceInterface $metadata) : bool
Parameters
- $metadata : ResourceInterface