Passed
Push — develop ( 818a9c...df7c09 )
by Jens
14:52
created

FileUploadRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * @author @jenschude <[email protected]>
4
 * @created: 23.01.15, 16:07
5
 */
6
7
namespace Commercetools\Core\Client;
8
9
use Psr\Http\Message\UploadedFileInterface;
10
11
/**
12
 * @package Commercetools\Core\Http
13
 * @internal
14
 */
15
class FileUploadRequest extends HttpRequest
16
{
17 4
    public function __construct($path, UploadedFileInterface $file)
18
    {
19 4
        parent::__construct('POST', $path, $file->getStream(), $file->getClientMediaType());
20 4
    }
21
}
22