<?php
namespace Thirty\services;
class Notifications { public static function create($DB, int $userId, string $type, array $payload = []) : void { $st=$DB->prepare('INSERT INTO notifications (user_id, type, payload) VALUES (?,?,?)'); $st->execute([$userId,$type,json_encode($payload, JSON_UNESCAPED_UNICODE)]); }}
