ResourceStub.php 687 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Config\Tests\Resource;
  11. use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
  12. class ResourceStub implements SelfCheckingResourceInterface
  13. {
  14. private $fresh = true;
  15. public function setFresh($isFresh)
  16. {
  17. $this->fresh = $isFresh;
  18. }
  19. public function __toString()
  20. {
  21. return 'stub';
  22. }
  23. public function isFresh($timestamp)
  24. {
  25. return $this->fresh;
  26. }
  27. }