Result   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 10
dl 0
loc 26
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRemoteId() 0 3 1
A getStatus() 0 3 1
A getData() 0 3 1
1
<?php
2
3
namespace kalanis\EmailApi\Basics;
4
5
6
/**
7
 * Class Result
8
 * @package kalanis\EmailApi\Basics
9
 * Result from sending service
10
 */
11
class Result
12
{
13
    public bool $status = false;
14
    public ?string $data = null;
15
    public ?string $remoteId = null;
16
17 10
    public function __construct(bool $status = false, ?string $data = null, ?string $remoteId = null)
18
    {
19 10
        $this->status = $status;
20 10
        $this->data = $data;
21 10
        $this->remoteId = $remoteId;
22 10
    }
23
24 8
    public function getStatus(): bool
25
    {
26 8
        return $this->status;
27
    }
28
29 5
    public function getData(): ?string
30
    {
31 5
        return $this->data;
32
    }
33
34 2
    public function getRemoteId(): ?string
35
    {
36 2
        return $this->remoteId;
37
    }
38
}
39