diff options
author | Joas Schilling <coding@schilljs.com> | 2021-02-15 13:55:22 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-02-15 14:36:44 +0300 |
commit | ebf65dcc5b654b79f4b05c1ec59a14ff3bc2f527 (patch) | |
tree | 776dc926be5ac12834486cdd3fa5c1aa20684120 /lib/Model | |
parent | e4e07da94ae4884b7fe348eccc4b296708a0bad3 (diff) |
Fix strings that can be null
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/Attendee.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/Model/Attendee.php b/lib/Model/Attendee.php index 302dcc447..40d4663db 100644 --- a/lib/Model/Attendee.php +++ b/lib/Model/Attendee.php @@ -33,9 +33,8 @@ use OCP\AppFramework\Db\Entity; * @method void setActorId(string $actorId) * @method string getActorId() * @method void setDisplayName(string $displayName) - * @method string getDisplayName() * @method void setPin(string $pin) - * @method string getPin() + * @method null|string getPin() * @method void setParticipantType(int $participantType) * @method int getParticipantType() * @method void setFavorite(bool $favorite) @@ -65,10 +64,10 @@ class Attendee extends Entity { /** @var string */ protected $actorId; - /** @var string */ + /** @var null|string */ protected $displayName; - /** @var string */ + /** @var null|string */ protected $pin; /** @var int */ @@ -107,6 +106,10 @@ class Attendee extends Entity { $this->addType('readPrivacy', 'int'); } + public function getDisplayName(): string { + return (string) $this->displayName; + } + /** * @return array */ @@ -116,7 +119,7 @@ class Attendee extends Entity { 'room_id' => $this->getRoomId(), 'actor_type' => $this->getActorType(), 'actor_id' => $this->getActorId(), - // FIXME 'display_name' => $this->getDisplayName(), + 'display_name' => $this->getDisplayName(), 'pin' => $this->getPin(), 'participant_type' => $this->getParticipantType(), 'favorite' => $this->isFavorite(), |