diff options
author | J0WI <J0WI@users.noreply.github.com> | 2021-04-19 15:50:30 +0200 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2021-04-19 17:31:12 +0200 |
commit | ca7b37ce5a5c68ea4a105377754005a772c5deaa (patch) | |
tree | 2df753ec57b8f5b51324d2e0bc4a361179dc2967 /lib/public/ICertificate.php | |
parent | 9a69b8839389f133db55a41e1c2ba4435fd50c19 (diff) | |
download | nextcloud-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.php | 27 |
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; } |