> $config Array of notifier configurations. */ public function loadMany(array $config): void { foreach ($config as $conf) { $this->loadSingle($conf['type'], $conf); } } /** * Load a single configuration * * @param string $key Notification class * @param string[] $config Implementation specific configuration */ public function loadSingle(string $key, array $config): void { switch ($key) { case 'ntfy': case 'Ntfy': case 'NTFY': $this->notifiers[] = new Ntfy($config); break; default: break; } } public function send(string $title, string $message): void { foreach ($this->notifiers as $notifier) { $notifier->send($title, $message); } } }