TicketResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of RussianPost SDK package.
5
 *
6
 * © Appwilio (http://appwilio.com), greabock (https://github.com/greabock), JhaoDa (https://github.com/jhaoda)
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Appwilio\RussianPostSDK\Tracking\Packet;
15
16
final class TicketResponse
17
{
18
    use ErrorAware;
0 ignored issues
show
Bug introduced by
The trait Appwilio\RussianPostSDK\Tracking\Packet\ErrorAware requires the property $Error which is not provided by Appwilio\RussianPostSDK\...g\Packet\TicketResponse.
Loading history...
19
20
    /** @var Error|null */
21
    private $error;
0 ignored issues
show
introduced by
The private property $error is not used, and could be removed.
Loading history...
22
23
    /** @var string */
24
    private $value;
25
26 1
    public function getId(): string
27
    {
28 1
        return $this->value;
29
    }
30
}
31