Test Failed
Push — develop ( c17639...818a9c )
by Jens
09:56
created

FileUploadRequest::__construct()   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
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
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
    public function __construct($path, UploadedFileInterface $file)
18
    {
19
        parent::__construct('POST', $path, $file->getStream(), $file->getClientMediaType());
20
    }
21
}
22