4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Config\Resource;
15 * Interface for Resources that can check for freshness autonomously,
16 * without special support from external services.
18 * @author Matthias Pigulla <mp@webfactory.de>
20 interface SelfCheckingResourceInterface extends ResourceInterface
23 * Returns true if the resource has not been updated since the given timestamp.
25 * @param int $timestamp The last time the resource was loaded
27 * @return bool True if the resource has not been updated, false otherwise
29 public function isFresh($timestamp);