Passed
Pull Request — master (#12)
by Laurens
01:57
created

ImageClient::postImage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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