ContainerParametersResourceChecker

ContainerParametersResourceChecker

class ContainerParametersResourceChecker implements ResourceCheckerInterface

Methods

__construct(ContainerInterface $container)
bool supports(ResourceInterface $metadata)

Queries the ResourceChecker whether it can validate a given resource or not.

bool isFresh(ResourceInterface $resource, int $timestamp)

Validates the resource.

Details

__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

bool supports(ResourceInterface $metadata)

Queries the ResourceChecker whether it can validate a given resource or not.

Parameters

ResourceInterface $metadata The resource to be checked for freshness

Return Value

bool True if the ResourceChecker can handle this resource type, false if not

bool isFresh(ResourceInterface $resource, int $timestamp)

Validates the resource.

Parameters

ResourceInterface $resource The resource to be validated
int $timestamp The timestamp at which the cache associated with this resource was created

Return Value

bool True if the resource has not changed since the given timestamp, false otherwise
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部