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

ImageClient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 16
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A postImage() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\IzettleApi\Client;
6
7
use LauLamanApps\IzettleApi\Client\Image\ImageUploadRequestInterface;
8
use LauLamanApps\IzettleApi\IzettleClientInterface;
9
10
final class ImageClient
11
{
12
    const BASE_URL = 'https://image.izettle.com/organizations/%s';
13
    const POST_IMAGE = self::BASE_URL . '/products';
14
15
    private $client;
16
17
    public function __construct(IzettleClientInterface $client)
18
    {
19
        $this->client = $client;
20
    }
21
22
    public function postImage(ImageUploadRequestInterface $imageUploadRequest): void
0 ignored issues
show
Unused Code introduced by
The parameter $imageUploadRequest is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
    }
25
}
26