SkippingResourceChecker
in package
implements
ResourceCheckerInterface
Table of Contents
Interfaces
- ResourceCheckerInterface
- Interface for ResourceCheckers.
Properties
- $skippedResourceTypes : array<string|int, mixed>
Methods
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- isFresh() : bool
- Validates the resource.
- supports() : bool
- Queries the ResourceChecker whether it can validate a given resource or not.
Properties
$skippedResourceTypes
private
array<string|int, mixed>
$skippedResourceTypes
Methods
__construct()
public
__construct([array<string|int, ResourceInterface>> $skippedResourceTypes = [] ]) : mixed
Parameters
- $skippedResourceTypes : array<string|int, ResourceInterface>> = []
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, 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
boolsupports()
Queries the ResourceChecker whether it can validate a given resource or not.
public
supports(ResourceInterface $metadata) : bool
Parameters
- $metadata : ResourceInterface