Pull merge.
[yaffs-website] / vendor / symfony / config / Resource / SelfCheckingResourceInterface.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Config\Resource;
13
14 /**
15  * Interface for Resources that can check for freshness autonomously,
16  * without special support from external services.
17  *
18  * @author Matthias Pigulla <mp@webfactory.de>
19  */
20 interface SelfCheckingResourceInterface extends ResourceInterface
21 {
22     /**
23      * Returns true if the resource has not been updated since the given timestamp.
24      *
25      * @param int $timestamp The last time the resource was loaded
26      *
27      * @return bool True if the resource has not been updated, false otherwise
28      */
29     public function isFresh($timestamp);
30 }