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

FileUploadRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
ccs 0
cts 2
cp 0
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
    public function __construct($path, UploadedFileInterface $file)
18
    {
19
        parent::__construct('POST', $path, $file->getStream(), $file->getClientMediaType());
20
    }
21
}
22