Completed
Push — Framework-Dependencies-Upgrade ( 998813...01c962 )
by Sheela
07:38
created

TrainingAssigned::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
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 15
    public function __construct($trainingUser)
19
    {
20 15
        $this->trainingUser = $trainingUser;
21 15
    }
22
23
    /**
24
     * Get the channels the event should be broadcast on.
25
     *
26
     * @return array
27
     */
28 1
    public function broadcastOn()
29
    {
30 1
        return [];
31
    }
32
33 2
    public function getTrainingUser()
34
    {
35 2
        return $this->trainingUser;
36
    }
37
}
38