Skip to content

Commit

Permalink
Add notes for duplicate getDialogKey() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed May 10, 2024
1 parent 31bcd31 commit fc03926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dialog.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ public function __serialize(): array
];
}

public function getDialogKey(): string
/** @internal This method is a subject for changes in further releases < 1.0 */
final public function getDialogKey(): string
{
return implode('-', [$this->getUserId(), $this->getChatId()]);
}
Expand Down
1 change: 1 addition & 0 deletions src/DialogManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ private function readDialogState($key): Dialog
return $this->store->get($key);
}

/** @internal This method is a subject for changes in further releases < 1.0 */
private function generateDialogKey(Update $update): string
{
return implode('-', [$update->getMessage()->from->id, $update->getChat()->id]);
Expand Down

0 comments on commit fc03926

Please sign in to comment.