DeviceUnregisteredEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 13
Ratio 100 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 13
loc 13
ccs 7
cts 7
cp 1
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 4
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\ApplePassbookBundle\Event;
6
7
8
final class DeviceUnregisteredEvent extends AbstractEvent
9
{
10
    /**
11
     * @var string
12
     */
13
    private $deviceLibraryIdentifier;
14
15
    /**
16
     * @var string
17
     */
18
    private $passTypeIdentifier;
19
20
    /**
21
     * @var string
22
     */
23
    private $serialNumber;
24
25
    /**
26
     * @var string
27
     */
28
    private $authenticationToken;
29
30 1 View Code Duplication
    public function __construct(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
31
        string $deviceLibraryIdentifier,
32
        string $passTypeIdentifier,
33
        string $serialNumber,
34
        string $authenticationToken
35
    ) {
36 1
        $this->deviceLibraryIdentifier = $deviceLibraryIdentifier;
37 1
        $this->passTypeIdentifier = $passTypeIdentifier;
38 1
        $this->serialNumber = $serialNumber;
39 1
        $this->authenticationToken = $authenticationToken;
40
41 1
        parent::__construct();
42 1
    }
43
44 1
    public function getDeviceLibraryIdentifier(): string
45
    {
46 1
        return $this->deviceLibraryIdentifier;
47
    }
48
49 1
    public function getPassTypeIdentifier(): string
50
    {
51 1
        return $this->passTypeIdentifier;
52
    }
53
54 1
    public function getSerialNumber(): string
55
    {
56 1
        return $this->serialNumber;
57
    }
58
59 1
    public function getAuthenticationToken(): string
60
    {
61 1
        return $this->authenticationToken;
62
    }
63
64 1
    public function deviceUnregistered(): void
65
    {
66 1
        $this->successful();
67 1
    }
68
}
69