Result::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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