Completed
Pull Request — master (#32)
by Manuel
03:55
created

ServerWasPoked   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 62.5%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 28
ccs 5
cts 8
cp 0.625
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getDevice() 0 4 1
1
<?php
2
3
namespace PiFinder\Events;
4
5
use PiFinder\Device;
6
use Illuminate\Queue\SerializesModels;
7
8
class ServerWasPoked extends Event
9
{
10
    use SerializesModels;
11
12
    /**
13
     * @var Device
14
     */
15
    protected $device;
16
17
    /**
18
     * Create a new event instance.
19
     *
20
     * @param Device $device
21
     */
22 4
    public function __construct(Device $device)
23
    {
24
        //
25 4
        $this->device = $device;
26 4
    }
27
28
    /**
29
     * @return Device
30
     */
31 4
    public function getDevice()
32
    {
33 4
        return $this->device;
34
    }
35
}
36