Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class TrackAnalytic |
||
14 | { |
||
15 | use Dispatchable, InteractsWithSockets, SerializesModels; |
||
|
|||
16 | |||
17 | public $mongodb_connection; |
||
18 | public $collection; |
||
19 | public $items; |
||
20 | public $userId; |
||
21 | public $params; |
||
22 | |||
23 | /** |
||
24 | * Create a new event instance. |
||
25 | * |
||
26 | * @return void |
||
27 | * @param mixed $collection |
||
28 | * @param mixed $items |
||
29 | * @param mixed $userId |
||
30 | * @param mixed $params |
||
31 | */ |
||
32 | public function __construct($collection, $items, $userId, $params) |
||
33 | { |
||
34 | $this->mongodb_connection = config('apanalytics.db_connection', 'mongodb'); |
||
35 | $this->collection = $collection; |
||
36 | $this->items = $items; |
||
37 | $this->userId = $userId; |
||
38 | $this->params = $params; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get the channels the event should broadcast on. |
||
43 | * |
||
44 | * @return \Illuminate\Broadcasting\Channel|array |
||
45 | */ |
||
46 | public function broadcastOn() |
||
48 | //$basename = strtolower(class_basename($this->item)); |
||
49 | //return new PresenceChannel('analytics.'.$basename.'.'.$this->item->id); |
||
52 |