public function make(string $title = null, string $text = null): Notification
    {
        if (self::$newNotificationCache === null) {
            self::$newNotificationCache = new Notification();
        }
        $notification = clone(self::$newNotificationCache);
        if ($title !== null) {
            $notification->title = $title;
        }
        if ($text !== null) {
            $notification->text = $text;
        }
        return $notification;
    }
public function make(string $title = null, string $text = null): Notification
    {
        if (self::$newNotificationCache === null) {
            self::$newNotificationCache = new Notification();
        }
        $notification = clone(self::$newNotificationCache);
        if ($title !== null) {
            $notification->title = $title;
        }
        if ($text !== null) {
            $notification->text = $text;
        }
        return $notification;
    }
public function make ( string $ title = null , string $ text = null ) : Notification { if ( self :: $ newNotificationCache === null ) { self :: $ newNotificationCache = new Notification ( ) ; } $ notification = clone ( self :: $ newNotificationCache ) ; if ( $ title !== null ) { $ notification -> title = $ title ; } if ( $ text !== null ) { $ notification -> text = $ text ; } return $ notification ; }
Constructs a new notification and returns it.

@param ?string $title The notification title.
@param ?string $text The notification text.
@return \BearFramework\Notifications\Notification
Constructs a new notification and returns it .