summaryrefslogtreecommitdiffstats
path: root/lib/public/ICertificateManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/ICertificateManager.php')
-rw-r--r--lib/public/ICertificateManager.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/public/ICertificateManager.php b/lib/public/ICertificateManager.php
index da97dc105d0..2014ec3ec06 100644
--- a/lib/public/ICertificateManager.php
+++ b/lib/public/ICertificateManager.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -35,7 +38,7 @@ interface ICertificateManager {
* @return \OCP\ICertificate[]
* @since 8.0.0
*/
- public function listCertificates();
+ public function listCertificates(): array;
/**
* @param string $certificate the certificate data
@@ -44,13 +47,14 @@ interface ICertificateManager {
* @throws \Exception If the certificate could not get added
* @since 8.0.0 - since 8.1.0 throws exception instead of returning false
*/
- public function addCertificate($certificate, $name);
+ public function addCertificate(string $certificate, string $name): \OCP\ICertificate;
/**
* @param string $name
+ * @return bool
* @since 8.0.0
*/
- public function removeCertificate($name);
+ public function removeCertificate(string $name): bool;
/**
* Get the path to the certificate bundle
@@ -58,7 +62,7 @@ interface ICertificateManager {
* @return string
* @since 8.0.0
*/
- public function getCertificateBundle();
+ public function getCertificateBundle(): string;
/**
* Get the full local path to the certificate bundle
@@ -66,5 +70,5 @@ interface ICertificateManager {
* @return string
* @since 9.0.0
*/
- public function getAbsoluteBundlePath();
+ public function getAbsoluteBundlePath(): string;
}