123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <?php
- namespace League\Flysystem\Cached\Storage;
- class Noop extends AbstractCache
- {
- /**
- * {@inheritdoc}
- */
- protected $autosave = false;
- /**
- * {@inheritdoc}
- */
- public function updateObject($path, array $object, $autosave = false)
- {
- return $object;
- }
- /**
- * {@inheritdoc}
- */
- public function isComplete($dirname, $recursive)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function setComplete($dirname, $recursive)
- {
- //
- }
- /**
- * {@inheritdoc}
- */
- public function copy($path, $newpath)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function rename($path, $newpath)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function storeContents($directory, array $contents, $recursive = false)
- {
- return $contents;
- }
- /**
- * {@inheritdoc}
- */
- public function storeMiss($path)
- {
- return $this;
- }
- /**
- * {@inheritdoc}
- */
- public function flush()
- {
- //
- }
- /**
- * {@inheritdoc}
- */
- public function autosave()
- {
- //
- }
- /**
- * {@inheritdoc}
- */
- public function save()
- {
- //
- }
- /**
- * {@inheritdoc}
- */
- public function load()
- {
- //
- }
- /**
- * {@inheritdoc}
- */
- public function has($path)
- {
- return;
- }
- /**
- * {@inheritdoc}
- */
- public function read($path)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function readStream($path)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function listContents($directory = '', $recursive = false)
- {
- return [];
- }
- /**
- * {@inheritdoc}
- */
- public function getMetadata($path)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function getSize($path)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function getMimetype($path)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function getTimestamp($path)
- {
- return false;
- }
- /**
- * {@inheritdoc}
- */
- public function getVisibility($path)
- {
- return false;
- }
- }
|