NullWatcher.php 651 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Files\Cache;
  8. class NullWatcher extends Watcher {
  9. private $policy;
  10. public function __construct() {
  11. }
  12. public function setPolicy($policy) {
  13. $this->policy = $policy;
  14. }
  15. public function getPolicy() {
  16. return $this->policy;
  17. }
  18. public function checkUpdate($path, $cachedEntry = null) {
  19. return false;
  20. }
  21. public function update($path, $cachedData) {
  22. }
  23. public function needsUpdate($path, $cachedData) {
  24. return false;
  25. }
  26. public function cleanFolder($path) {
  27. }
  28. }