1
0
Fork 0
- added some missing type-hints
- added some documentation
- added some empty lines to `@return` statements (code-style convention)
This commit is contained in:
Roland Häder 2022-08-12 13:35:27 +02:00
commit 074bae33c9
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77
12 changed files with 30 additions and 5 deletions

View file

@ -45,6 +45,12 @@ class Notification extends BaseFactory
$this->mstdnStatusFactory = $mstdnStatusFactoryFactory;
}
/**
* @param Notifications\Entity\Notification $Notification
*
* @return MstdnNotification
* @throws UnexpectedNotificationTypeException
*/
public function createFromNotification(Notifications\Entity\Notification $Notification): MstdnNotification
{
$type = self::getType($Notification);