-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13173 from nextcloud/techdebt/noid/unify-room-pro…
…perty-updates-2 fix(api): Properly typed room-property updates - Part 2
- Loading branch information
Showing
21 changed files
with
816 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
namespace OCA\Talk\Exceptions\RoomProperty; | ||
|
||
class AvatarException extends \InvalidArgumentException { | ||
public const REASON_TYPE = 'type'; | ||
|
||
/** | ||
* @param self::REASON_* $reason | ||
*/ | ||
public function __construct( | ||
protected string $reason, | ||
) { | ||
parent::__construct($reason); | ||
} | ||
|
||
/** | ||
* @return self::REASON_* | ||
*/ | ||
public function getReason(): string { | ||
return $this->reason; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
namespace OCA\Talk\Exceptions\RoomProperty; | ||
|
||
class BreakoutRoomModeException extends \InvalidArgumentException { | ||
public const REASON_VALUE = 'value'; | ||
|
||
/** | ||
* @param self::REASON_* $reason | ||
*/ | ||
public function __construct( | ||
protected string $reason, | ||
) { | ||
parent::__construct($reason); | ||
} | ||
|
||
/** | ||
* @return self::REASON_* | ||
*/ | ||
public function getReason(): string { | ||
return $this->reason; | ||
} | ||
} |
Oops, something went wrong.