SelfCheckingResourceInterface

SelfCheckingResourceInterface

interface SelfCheckingResourceInterface implements ResourceInterface

Interface for Resources that can check for freshness autonomously, without special support from external services.

Methods

string __toString()

Returns a string representation of the Resource.

from ResourceInterface
bool isFresh(int $timestamp)

Returns true if the resource has not been updated since the given timestamp.<