efureev/firebase-notifications-laravel

View on GitHub
src/Exceptions/CouldNotSendNotification.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Feugene\FirebaseNotificationsChannel\Exceptions;

/**
 * Class CouldNotSendNotification
 * @package Feugene\FirebaseNotificationsChannel\Exceptions
 */
class CouldNotSendNotification extends \Exception
{
    /**
     * @return CouldNotSendNotification
     */
    public static function invalidNotification(): self
    {
        return new self('Can\'t convert notification to FCM message');
    }
}