diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-12-19 16:41:50 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-12-19 16:41:50 +0300 |
commit | 233c56cfe964375d602e58fa3d5ba11eb7a993ee (patch) | |
tree | f0c26fedb12ddd229cf1b17de30d1f4f06b3252f /lib | |
parent | 69a4ca70afaf67c7b35623e407eac4f47b59cce0 (diff) |
make Joas happy by adding some comments :-)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Activity/Provider.php | 12 | ||||
-rw-r--r-- | lib/Activity/Setting.php | 24 |
2 files changed, 36 insertions, 0 deletions
diff --git a/lib/Activity/Provider.php b/lib/Activity/Provider.php index 8e7abfe..b08ba99 100644 --- a/lib/Activity/Provider.php +++ b/lib/Activity/Provider.php @@ -40,12 +40,24 @@ class Provider implements IProvider { /** @var ILogger */ private $logger; + /** + * @param L10nFactory $l10n + * @param IURLGenerator $urlGenerator + * @param ILogger $logger + */ public function __construct(L10nFactory $l10n, IURLGenerator $urlGenerator, ILogger $logger) { $this->logger = $logger; $this->urlGenerator = $urlGenerator; $this->l10n = $l10n; } + /** + * @param string $language + * @param IEvent $event + * @param IEvent $previousEvent + * @return IEvent + * @throws InvalidArgumentException + */ public function parse($language, IEvent $event, IEvent $previousEvent = null) { if ($event->getApp() !== 'twofactor_u2f') { throw new InvalidArgumentException(); diff --git a/lib/Activity/Setting.php b/lib/Activity/Setting.php index be0db55..8501d2d 100644 --- a/lib/Activity/Setting.php +++ b/lib/Activity/Setting.php @@ -30,34 +30,58 @@ class Setting implements ISetting { /** @var IL10N */ private $l10n; + /** + * @param IL10N $l10n + */ public function __construct(IL10N $l10n) { $this->l10n = $l10n; } + /** + * @return boolean + */ public function canChangeMail() { return false; } + /** + * @return boolean + */ public function canChangeStream() { return false; } + /** + * @return string + */ public function getIdentifier() { return 'twofactor_u2f'; } + /** + * @return string + */ public function getName() { return $this->l10n->t('U2F device'); } + /** + * @return int + */ public function getPriority() { return 30; } + /** + * @return boolean + */ public function isDefaultEnabledMail() { return true; } + /** + * @return boolean + */ public function isDefaultEnabledStream() { return true; } |