PoolGetDriverStub.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. /*
  3. * This file is part of the Stash package.
  4. *
  5. * (c) Robert Hafner <tedivm@tedivm.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 Stash\Test\Stubs;
  11. use Psr\Cache\CacheItemInterface;
  12. use Stash\Interfaces\PoolInterface;
  13. /**
  14. *
  15. *
  16. * @package Stash
  17. * @author Robert Hafner <tedivm@tedivm.com>
  18. */
  19. class PoolGetDriverStub implements PoolInterface
  20. {
  21. protected $driver;
  22. public function setDriver(\Stash\Interfaces\DriverInterface $driver)
  23. {
  24. $this->driver = $driver;
  25. }
  26. public function getDriver()
  27. {
  28. return $this->driver;
  29. }
  30. public function setItemClass($class)
  31. {
  32. return true;
  33. }
  34. public function getItem($key)
  35. {
  36. return false;
  37. }
  38. public function getItems(array $keys = array())
  39. {
  40. return false;
  41. }
  42. public function clear()
  43. {
  44. return false;
  45. }
  46. public function purge()
  47. {
  48. return false;
  49. }
  50. public function setNamespace($namespace = null)
  51. {
  52. return false;
  53. }
  54. public function getNamespace()
  55. {
  56. return false;
  57. }
  58. public function setLogger($logger)
  59. {
  60. return false;
  61. }
  62. public function hasItem($key)
  63. {
  64. return false;
  65. }
  66. public function commit()
  67. {
  68. return false;
  69. }
  70. public function saveDeferred(CacheItemInterface $item)
  71. {
  72. return false;
  73. }
  74. public function save(CacheItemInterface $item)
  75. {
  76. return false;
  77. }
  78. public function deleteItems(array $keys)
  79. {
  80. return false;
  81. }
  82. public function deleteItem($key)
  83. {
  84. return false;
  85. }
  86. }