Passed
Pull Request — master (#11)
by Carlos C
01:51
created

QueryPendingResult   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Test Coverage

Coverage 26.32%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 45
ccs 5
cts 19
cp 0.2632
rs 10
c 1
b 0
f 0
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A date() 0 3 1
A xml() 0 3 1
A __construct() 0 3 1
A nextAttempt() 0 3 1
A error() 0 3 1
A status() 0 3 1
A uuid() 0 3 1
A attempts() 0 3 1
A uuidStatus() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpCfdi\Finkok\Services\Stamping;
6
7
use PhpCfdi\Finkok\Services\AbstractResult;
8
use stdClass;
9
10
class QueryPendingResult extends AbstractResult
11
{
12 1
    public function __construct(stdClass $data)
13
    {
14 1
        parent::__construct($data, 'query_pendingResult');
15 1
    }
16
17 1
    public function status(): string
18
    {
19 1
        return $this->get('status');
20
    }
21
22
    public function xml(): string
23
    {
24
        return $this->get('xml');
25
    }
26
27
    public function uuid(): string
28
    {
29
        return $this->get('uuid');
30
    }
31
32
    public function uuidStatus(): string
33
    {
34
        return $this->get('uuid_status');
35
    }
36
37
    public function nextAttempt(): string
38
    {
39
        return $this->get('next_attempt');
40
    }
41
42
    public function attempts(): string
43
    {
44
        return $this->get('attempts');
45
    }
46
47
    public function error(): string
48
    {
49
        return $this->get('error');
50
    }
51
52
    public function date(): string
53
    {
54
        return $this->get('date');
55
    }
56
}
57