Completed
Push — master ( 510f92...73b08b )
by Laurens
01:58
created

ImageUrlUpload::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\IzettleApi\Client\Image;
6
7
final class ImageUrlUpload implements ImageUploadRequestInterface
8
{
9
    private $imageUrl;
10
11 3
    public function __construct(string $imageUrl)
12
    {
13 3
        $this->imageUrl = $imageUrl;
14 3
    }
15
16 3
    public function getUploadRequest(): array
17
    {
18
        return [
19 3
            'imageUrl' => $this->imageUrl
20
        ];
21
    }
22
}
23