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

FileUploadRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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