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

TrainingAssigned   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 31
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A broadcastOn() 0 4 1
A getTrainingUser() 0 4 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
    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