Noop.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?php
  2. namespace League\Flysystem\Cached\Storage;
  3. class Noop extends AbstractCache
  4. {
  5. /**
  6. * {@inheritdoc}
  7. */
  8. protected $autosave = false;
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function updateObject($path, array $object, $autosave = false)
  13. {
  14. return $object;
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function isComplete($dirname, $recursive)
  20. {
  21. return false;
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function setComplete($dirname, $recursive)
  27. {
  28. //
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function copy($path, $newpath)
  34. {
  35. return false;
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function rename($path, $newpath)
  41. {
  42. return false;
  43. }
  44. /**
  45. * {@inheritdoc}
  46. */
  47. public function storeContents($directory, array $contents, $recursive = false)
  48. {
  49. return $contents;
  50. }
  51. /**
  52. * {@inheritdoc}
  53. */
  54. public function storeMiss($path)
  55. {
  56. return $this;
  57. }
  58. /**
  59. * {@inheritdoc}
  60. */
  61. public function flush()
  62. {
  63. //
  64. }
  65. /**
  66. * {@inheritdoc}
  67. */
  68. public function autosave()
  69. {
  70. //
  71. }
  72. /**
  73. * {@inheritdoc}
  74. */
  75. public function save()
  76. {
  77. //
  78. }
  79. /**
  80. * {@inheritdoc}
  81. */
  82. public function load()
  83. {
  84. //
  85. }
  86. /**
  87. * {@inheritdoc}
  88. */
  89. public function has($path)
  90. {
  91. return;
  92. }
  93. /**
  94. * {@inheritdoc}
  95. */
  96. public function read($path)
  97. {
  98. return false;
  99. }
  100. /**
  101. * {@inheritdoc}
  102. */
  103. public function readStream($path)
  104. {
  105. return false;
  106. }
  107. /**
  108. * {@inheritdoc}
  109. */
  110. public function listContents($directory = '', $recursive = false)
  111. {
  112. return [];
  113. }
  114. /**
  115. * {@inheritdoc}
  116. */
  117. public function getMetadata($path)
  118. {
  119. return false;
  120. }
  121. /**
  122. * {@inheritdoc}
  123. */
  124. public function getSize($path)
  125. {
  126. return false;
  127. }
  128. /**
  129. * {@inheritdoc}
  130. */
  131. public function getMimetype($path)
  132. {
  133. return false;
  134. }
  135. /**
  136. * {@inheritdoc}
  137. */
  138. public function getTimestamp($path)
  139. {
  140. return false;
  141. }
  142. /**
  143. * {@inheritdoc}
  144. */
  145. public function getVisibility($path)
  146. {
  147. return false;
  148. }
  149. }