Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-<?php
+<?php declare(strict_types=1);
+
/**
* @copyright 2016 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @return ICredentials the login credentials of the current user
* @throws CredentialsUnavailableException
*/
- public function getLoginCredentials() {
- if (is_null($this->tokenProvider)) {
+ public function getLoginCredentials(): ICredentials {
+ if ($this->tokenProvider === null) {
throw new CredentialsUnavailableException();
}
-<?php
+<?php declare(strict_types=1);
+
/**
* @copyright 2016 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @since 12
*/
interface IStore {
-
+
/**
* Get login credentials of the currently logged in user
*
* @throws CredentialsUnavailableException
* @return ICredentials the login credentials of the current user
*/
- public function getLoginCredentials();
-
+ public function getLoginCredentials(): ICredentials;
+
}