Completed
Pull Request — master (#32)
by Manuel
04:02
created

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