Completed
Push — master ( 59fb2e...bf9165 )
by Manuel
03:41
created

ServerWasPoked::getDevice()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 1
cc 1
eloc 2
nc 1
nop 0
crap 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 5
    public function __construct(Device $device)
23
    {
24
        //
25 5
        $this->device = $device;
26 5
    }
27
28
    /**
29
     * @return Device
30
     */
31 5
    public function getDevice()
32
    {
33 5
        return $this->device;
34
    }
35
}
36