ResourceStub.php 757 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. public function getResource()
  28. {
  29. return 'stub';
  30. }
  31. }