RequestBuilder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildRequest() 0 7 1
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Client\Coremedia\Api\Builder;
9
10
use GuzzleHttp\Psr7\Request as Psr7Request;
11
use Psr\Http\Message\RequestInterface;
12
13
class RequestBuilder implements RequestBuilderInterface
14
{
15
    /**
16
     * @param string $requestMethod
17
     * @param string $requestUrl
18
     *
19
     * @return \Psr\Http\Message\RequestInterface
20
     */
21
    public function buildRequest(
22
        string $requestMethod,
23
        string $requestUrl
24
    ): RequestInterface {
25
        return new Psr7Request(
26
            $requestMethod,
27
            $requestUrl
28
        );
29
    }
30
}
31