Capabilities.php 637 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 OCA\WeatherStatus;
  8. use OCA\WeatherStatus\AppInfo\Application;
  9. use OCP\Capabilities\ICapability;
  10. /**
  11. * Class Capabilities
  12. *
  13. * @package OCA\UserStatus
  14. */
  15. class Capabilities implements ICapability {
  16. /**
  17. * Capabilities constructor.
  18. *
  19. */
  20. public function __construct() {
  21. }
  22. /**
  23. * @return array{weather_status: array{enabled: bool}}
  24. */
  25. public function getCapabilities() {
  26. return [
  27. Application::APP_ID => [
  28. 'enabled' => true,
  29. ],
  30. ];
  31. }
  32. }