@@ -29,15 +29,15 @@ |
||
| 29 | 29 | * @since 14.0.0 |
| 30 | 30 | */ |
| 31 | 31 | interface ISetDisplayNameBackend { |
| 32 | - /** |
|
| 33 | - * @since 14.0.0 |
|
| 34 | - * |
|
| 35 | - * @param string $uid The username |
|
| 36 | - * @param string $displayName The new display name |
|
| 37 | - * @return bool |
|
| 38 | - * |
|
| 39 | - * @since 25.0.0 Throw InvalidArgumentException |
|
| 40 | - * @throws \InvalidArgumentException |
|
| 41 | - */ |
|
| 42 | - public function setDisplayName(string $uid, string $displayName): bool; |
|
| 32 | + /** |
|
| 33 | + * @since 14.0.0 |
|
| 34 | + * |
|
| 35 | + * @param string $uid The username |
|
| 36 | + * @param string $displayName The new display name |
|
| 37 | + * @return bool |
|
| 38 | + * |
|
| 39 | + * @since 25.0.0 Throw InvalidArgumentException |
|
| 40 | + * @throws \InvalidArgumentException |
|
| 41 | + */ |
|
| 42 | + public function setDisplayName(string $uid, string $displayName): bool; |
|
| 43 | 43 | } |
@@ -29,12 +29,12 @@ |
||
| 29 | 29 | * @since 14.0.0 |
| 30 | 30 | */ |
| 31 | 31 | interface ISetPasswordBackend { |
| 32 | - /** |
|
| 33 | - * @since 14.0.0 |
|
| 34 | - * |
|
| 35 | - * @param string $uid The username |
|
| 36 | - * @param string $password The new password |
|
| 37 | - * @return bool |
|
| 38 | - */ |
|
| 39 | - public function setPassword(string $uid, string $password): bool; |
|
| 32 | + /** |
|
| 33 | + * @since 14.0.0 |
|
| 34 | + * |
|
| 35 | + * @param string $uid The username |
|
| 36 | + * @param string $password The new password |
|
| 37 | + * @return bool |
|
| 38 | + */ |
|
| 39 | + public function setPassword(string $uid, string $password): bool; |
|
| 40 | 40 | } |
@@ -29,13 +29,13 @@ |
||
| 29 | 29 | * @since 21.0.1 |
| 30 | 30 | */ |
| 31 | 31 | interface ISearchKnownUsersBackend { |
| 32 | - /** |
|
| 33 | - * @param string $searcher |
|
| 34 | - * @param string $pattern |
|
| 35 | - * @param int|null $limit |
|
| 36 | - * @param int|null $offset |
|
| 37 | - * @return array |
|
| 38 | - * @since 21.0.1 |
|
| 39 | - */ |
|
| 40 | - public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array; |
|
| 32 | + /** |
|
| 33 | + * @param string $searcher |
|
| 34 | + * @param string $pattern |
|
| 35 | + * @param int|null $limit |
|
| 36 | + * @param int|null $offset |
|
| 37 | + * @return array |
|
| 38 | + * @since 21.0.1 |
|
| 39 | + */ |
|
| 40 | + public function searchKnownUsersByDisplayName(string $searcher, string $pattern, ?int $limit = null, ?int $offset = null): array; |
|
| 41 | 41 | } |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | * @since 14.0.0 |
| 30 | 30 | */ |
| 31 | 31 | interface IProvideAvatarBackend { |
| 32 | - /** |
|
| 33 | - * @since 14.0.0 |
|
| 34 | - * |
|
| 35 | - * @param string $uid |
|
| 36 | - * @return bool |
|
| 37 | - */ |
|
| 38 | - public function canChangeAvatar(string $uid): bool; |
|
| 32 | + /** |
|
| 33 | + * @since 14.0.0 |
|
| 34 | + * |
|
| 35 | + * @param string $uid |
|
| 36 | + * @return bool |
|
| 37 | + */ |
|
| 38 | + public function canChangeAvatar(string $uid): bool; |
|
| 39 | 39 | } |
@@ -29,12 +29,12 @@ |
||
| 29 | 29 | * @since 14.0.0 |
| 30 | 30 | */ |
| 31 | 31 | interface ICreateUserBackend { |
| 32 | - /** |
|
| 33 | - * @since 14.0.0 |
|
| 34 | - * |
|
| 35 | - * @param string $uid The username of the user to create |
|
| 36 | - * @param string $password The password of the new user |
|
| 37 | - * @return bool |
|
| 38 | - */ |
|
| 39 | - public function createUser(string $uid, string $password): bool; |
|
| 32 | + /** |
|
| 33 | + * @since 14.0.0 |
|
| 34 | + * |
|
| 35 | + * @param string $uid The username of the user to create |
|
| 36 | + * @param string $password The password of the new user |
|
| 37 | + * @return bool |
|
| 38 | + */ |
|
| 39 | + public function createUser(string $uid, string $password): bool; |
|
| 40 | 40 | } |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | * @since 15.0.0 |
| 30 | 30 | */ |
| 31 | 31 | interface IPasswordConfirmationBackend { |
| 32 | - /** |
|
| 33 | - * @since 15.0.0 |
|
| 34 | - */ |
|
| 35 | - public function canConfirmPassword(string $uid): bool; |
|
| 32 | + /** |
|
| 33 | + * @since 15.0.0 |
|
| 34 | + */ |
|
| 35 | + public function canConfirmPassword(string $uid): bool; |
|
| 36 | 36 | } |
@@ -31,26 +31,26 @@ |
||
| 31 | 31 | * @since 18.0.0 |
| 32 | 32 | */ |
| 33 | 33 | interface IBroadcastEvent { |
| 34 | - /** |
|
| 35 | - * @return string the name of the event |
|
| 36 | - * @since 18.0.0 |
|
| 37 | - */ |
|
| 38 | - public function getName(): string; |
|
| 34 | + /** |
|
| 35 | + * @return string the name of the event |
|
| 36 | + * @since 18.0.0 |
|
| 37 | + */ |
|
| 38 | + public function getName(): string; |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * @return string[] |
|
| 42 | - * @since 18.0.0 |
|
| 43 | - */ |
|
| 44 | - public function getUids(): array; |
|
| 40 | + /** |
|
| 41 | + * @return string[] |
|
| 42 | + * @since 18.0.0 |
|
| 43 | + */ |
|
| 44 | + public function getUids(): array; |
|
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * @return JsonSerializable the data to be sent to the client |
|
| 48 | - * @since 18.0.0 |
|
| 49 | - */ |
|
| 50 | - public function getPayload(): JsonSerializable; |
|
| 46 | + /** |
|
| 47 | + * @return JsonSerializable the data to be sent to the client |
|
| 48 | + * @since 18.0.0 |
|
| 49 | + */ |
|
| 50 | + public function getPayload(): JsonSerializable; |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * @since 18.0.0 |
|
| 54 | - */ |
|
| 55 | - public function setBroadcasted(): void; |
|
| 52 | + /** |
|
| 53 | + * @since 18.0.0 |
|
| 54 | + */ |
|
| 55 | + public function setBroadcasted(): void; |
|
| 56 | 56 | } |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | * @since 8.2.0 |
| 28 | 28 | */ |
| 29 | 29 | class SabrePluginException extends Exception { |
| 30 | - /** |
|
| 31 | - * Returns the HTTP statuscode for this exception |
|
| 32 | - * |
|
| 33 | - * @return int |
|
| 34 | - * @since 8.2.0 |
|
| 35 | - */ |
|
| 36 | - public function getHTTPCode() { |
|
| 37 | - return $this->code; |
|
| 38 | - } |
|
| 30 | + /** |
|
| 31 | + * Returns the HTTP statuscode for this exception |
|
| 32 | + * |
|
| 33 | + * @return int |
|
| 34 | + * @since 8.2.0 |
|
| 35 | + */ |
|
| 36 | + public function getHTTPCode() { |
|
| 37 | + return $this->code; |
|
| 38 | + } |
|
| 39 | 39 | } |
@@ -35,9 +35,9 @@ |
||
| 35 | 35 | * @since 26.0.0 |
| 36 | 36 | */ |
| 37 | 37 | interface IConditionalWidget extends IWidget { |
| 38 | - /** |
|
| 39 | - * @return bool Whether the widget is enabled and should be registered |
|
| 40 | - * @since 26.0.0 |
|
| 41 | - */ |
|
| 42 | - public function isEnabled(): bool; |
|
| 38 | + /** |
|
| 39 | + * @return bool Whether the widget is enabled and should be registered |
|
| 40 | + * @since 26.0.0 |
|
| 41 | + */ |
|
| 42 | + public function isEnabled(): bool; |
|
| 43 | 43 | } |