aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/ICertificate.php
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-04-19 15:50:30 +0200
committerJ0WI <J0WI@users.noreply.github.com>2021-04-19 17:31:12 +0200
commitca7b37ce5a5c68ea4a105377754005a772c5deaa (patch)
tree2df753ec57b8f5b51324d2e0bc4a361179dc2967 /lib/public/ICertificate.php
parent9a69b8839389f133db55a41e1c2ba4435fd50c19 (diff)
downloadnextcloud-server-ca7b37ce5a5c68ea4a105377754005a772c5deaa.tar.gz
nextcloud-server-ca7b37ce5a5c68ea4a105377754005a772c5deaa.zip
Make Security module strict
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/public/ICertificate.php')
-rw-r--r--lib/public/ICertificate.php27
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/public/ICertificate.php b/lib/public/ICertificate.php
index dbedd274305..c9e56e0e879 100644
--- a/lib/public/ICertificate.php
+++ b/lib/public/ICertificate.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -33,47 +36,47 @@ interface ICertificate {
* @return string
* @since 8.0.0
*/
- public function getName();
+ public function getName(): string;
/**
- * @return string
+ * @return string|null
* @since 8.0.0
*/
- public function getCommonName();
+ public function getCommonName(): ?string;
/**
- * @return string
+ * @return string|null
* @since 8.0.0
*/
- public function getOrganization();
+ public function getOrganization(): ?string;
/**
* @return \DateTime
* @since 8.0.0
*/
- public function getIssueDate();
+ public function getIssueDate(): \DateTime;
/**
* @return \DateTime
* @since 8.0.0
*/
- public function getExpireDate();
+ public function getExpireDate(): \DateTime;
/**
* @return bool
* @since 8.0.0
*/
- public function isExpired();
+ public function isExpired(): bool;
/**
- * @return string
+ * @return string|null
* @since 8.0.0
*/
- public function getIssuerName();
+ public function getIssuerName(): ?string;
/**
- * @return string
+ * @return string|null
* @since 8.0.0
*/
- public function getIssuerOrganization();
+ public function getIssuerOrganization(): ?string;
}