Completed
Pull Request — master (#9)
by Laurens
03:05 queued 01:10
created

ImageUrlUpload   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUploadRequest() 0 6 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
    public function __construct(string $imageUrl)
12
    {
13
        $this->imageUrl = $imageUrl;
14
    }
15
16
    public function getUploadRequest(): array
17
    {
18
        return [
19
            'imageUrl' => $this->imageUrl
20
        ];
21
    }
22
}
23