diff options
author | Simon Rettberg | 2022-05-23 14:41:33 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-23 14:41:33 +0200 |
commit | 9122ed1bdee76f0ef37fb5996d25656083b7a4a6 (patch) | |
tree | 0edbe18e60d0f4ad44d711ddf147b25928293f11 /modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php | |
parent | [rebootcontrol] Force type of ByRef param to array (diff) | |
download | slx-admin-9122ed1bdee76f0ef37fb5996d25656083b7a4a6.tar.gz slx-admin-9122ed1bdee76f0ef37fb5996d25656083b7a4a6.tar.xz slx-admin-9122ed1bdee76f0ef37fb5996d25656083b7a4a6.zip |
[locationinfo] Add types
Diffstat (limited to 'modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php b/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php index cccbef91..4d70e5aa 100644 --- a/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php +++ b/modules-available/locationinfo/inc/coursebackend/coursebackend_hisinone.inc.php @@ -3,7 +3,7 @@ class CourseBackend_HisInOne extends ICalCourseBackend { - public function setCredentialsInternal($data) + public function setCredentialsInternal(array $data): bool { if (empty($data['baseUrl'])) { $this->addError("No url is given", true); @@ -16,7 +16,7 @@ class CourseBackend_HisInOne extends ICalCourseBackend return true; } - public function getCredentialDefinitions() + public function getCredentialDefinitions(): array { return [ new BackendProperty('baseUrl', 'string'), @@ -25,7 +25,7 @@ class CourseBackend_HisInOne extends ICalCourseBackend ]; } - public function mangleProperty($prop, $value) + public function mangleProperty(string $prop, $value) { if ($prop === 'baseUrl') { // Update form SOAP to iCal url @@ -52,7 +52,7 @@ class CourseBackend_HisInOne extends ICalCourseBackend return $title; } - public function checkConnection() + public function checkConnection(): bool { if (!$this->isOK()) return false; @@ -66,18 +66,18 @@ class CourseBackend_HisInOne extends ICalCourseBackend return false; } - public function getCacheTime() + public function getCacheTime(): int { return 30 * 60; } - public function getRefreshTime() + public function getRefreshTime(): int { return 60 * 60; } - public function getDisplayName() + public function getDisplayName(): string { return "HisInOne"; } |