SyncClients.php 723 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 OCA\Settings\Sections\Personal;
  8. use OCP\IL10N;
  9. use OCP\IURLGenerator;
  10. use OCP\Settings\IIconSection;
  11. class SyncClients implements IIconSection {
  12. public function __construct(
  13. private IL10N $l,
  14. private IURLGenerator $urlGenerator,
  15. ) {
  16. }
  17. public function getIcon() {
  18. return $this->urlGenerator->imagePath('core', 'clients/phone.svg');
  19. }
  20. public function getID(): string {
  21. return 'sync-clients';
  22. }
  23. public function getName(): string {
  24. return $this->l->t('Mobile & desktop');
  25. }
  26. public function getPriority(): int {
  27. return 15;
  28. }
  29. }