externalpassword/lib/Sections/Billing.php

33 lines
723 B
PHP
Raw Permalink Normal View History

2022-11-12 03:07:29 +00:00
<?php
namespace OCA\ExternalPassword\Sections;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
2022-11-13 03:02:23 +00:00
class Billing implements IIconSection {
2022-11-12 03:07:29 +00:00
private IL10N $l;
private IURLGenerator $urlGenerator;
public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
$this->l = $l;
$this->urlGenerator = $urlGenerator;
}
public function getIcon(): string {
return $this->urlGenerator->imagePath('externalpassword', 'billing.svg');
}
public function getID(): string {
return 'billing';
}
public function getName(): string {
return $this->l->t('Billing');
}
public function getPriority(): int {
2022-11-13 03:02:23 +00:00
return 1;
2022-11-12 03:07:29 +00:00
}
}