externalpassword/lib/Sections/Billing.php
2022-11-12 20:02:43 -07:00

33 lines
723 B
PHP

<?php
namespace OCA\ExternalPassword\Sections;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class Billing implements IIconSection {
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 {
return 1;
}
}