CaptureInteractiveRetrieve   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 29
ccs 6
cts 6
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A responseClass() 0 3 1
A setId() 0 3 1
A basePath() 0 3 1
1
<?php
2
3
4
namespace LaravelLoqate\APIs;
5
6
use LaravelLoqate\Responses\CaptureInteractiveResponse;
7
8
/**
9
 * Returns the full address details based on the Id.
10
 * @see https://www.loqate.com/resources/support/apis/Capture/Interactive/Retrieve/1/
11
 * Class CaptureInteractiveRetrieve
12
 * @package LaravelLoqate\APIs
13
 */
14
class CaptureInteractiveRetrieve extends AbstractAPI
15
{
16
17
    /**
18
     * @inheritDoc
19
     */
20 1
    public function basePath(): string
21
    {
22 1
        return 'Capture/Interactive/Retrieve/v1';
23
    }
24
25
    /**
26
     * @inheritDoc
27
     */
28 1
    protected function responseClass(): string
29
    {
30 1
        return CaptureInteractiveResponse::class;
31
    }
32
33
    /**
34
     * The Id from a Find method to retrieve the details for.
35
     *
36
     * @param string $id
37
     *
38
     * @return $this
39
     */
40 1
    public function setId(string $id): self
41
    {
42 1
        return $this->setRequestField('Id', $id);
43
    }
44
}
45