]> git.localhorst.tv Git - alttp.git/blobdiff - app/Events/ResultReported.php
server calculated scoring
[alttp.git] / app / Events / ResultReported.php
diff --git a/app/Events/ResultReported.php b/app/Events/ResultReported.php
deleted file mode 100644 (file)
index 61ec98b..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace App\Events;
-
-use App\Models\Result;
-use Illuminate\Broadcasting\Channel;
-use Illuminate\Broadcasting\InteractsWithSockets;
-use Illuminate\Broadcasting\PresenceChannel;
-use Illuminate\Broadcasting\PrivateChannel;
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
-use Illuminate\Foundation\Events\Dispatchable;
-use Illuminate\Queue\SerializesModels;
-
-class ResultReported implements ShouldBroadcast
-{
-       use Dispatchable, InteractsWithSockets, SerializesModels;
-
-       /**
-        * Create a new event instance.
-        *
-        * @return void
-        */
-       public function __construct(Result $result)
-       {
-               $this->result = $result;
-       }
-
-       /**
-        * Get the channels the event should broadcast on.
-        *
-        * @return \Illuminate\Broadcasting\Channel|array
-        */
-       public function broadcastOn()
-       {
-               return new Channel('Tournament.'.$this->result->round->tournament_id);
-       }
-
-       public $result;
-
-}