Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz6chez committed Apr 9, 2024
1 parent 5ec0daf commit 9b5d3d9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/DefaultHandler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php declare(strict_types=1);

namespace Workbunny\WebmanPushServer;

class DefaultHandler implements HookHandlerInterface
{

/** @var DefaultHandler|null */
protected static ?DefaultHandler $_instance = null;

/** @inheritdoc */
public static function instance(): DefaultHandler
{
if(!self::$_instance instanceof DefaultHandler){
self::$_instance = new DefaultHandler();
}
return self::$_instance;
}

/** @inheritdoc */
public function run(string $queue, string $group, array $dataArray): void
{
$idArray = array_keys($dataArray);
HookServer::instance()->ack($queue, $group, $idArray);
}
}

0 comments on commit 9b5d3d9

Please sign in to comment.