Completed
Push — develop ( fe3e53...e8985b )
by Jens
08:00
created

FileUploadRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 10

1 Method

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