Completed
Push — master ( ac047e...863ff8 )
by Sheela
06:46
created

TrainingAssigned::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace SET\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
7
class TrainingAssigned extends Event
8
{
9
    use SerializesModels;
10
11
    private $trainingUser;
12
13
    /**
14
     * Builds our trainingAssigned Class.
15
     *
16
     * @param $trainingUser
17
     */
18
    public function __construct($trainingUser)
19
    {
20
        $this->trainingUser = $trainingUser;
21
    }
22
23
    /**
24
     * Get the channels the event should be broadcast on.
25
     *
26
     * @return array
27
     */
28
    public function broadcastOn()
29
    {
30
        return [];
31
    }
32
33
    public function getTrainingUser()
34
    {
35
        return $this->trainingUser;
36
    }
37
}
38