Yaffs site version 1.1
[yaffs-website] / vendor / symfony / config / Tests / Resource / ResourceStub.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\Tests\Resource;
13
14 use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
15
16 class ResourceStub implements SelfCheckingResourceInterface
17 {
18     private $fresh = true;
19
20     public function setFresh($isFresh)
21     {
22         $this->fresh = $isFresh;
23     }
24
25     public function __toString()
26     {
27         return 'stub';
28     }
29
30     public function isFresh($timestamp)
31     {
32         return $this->fresh;
33     }
34
35     public function getResource()
36     {
37         return 'stub';
38     }
39 }