Passed
Push — master ( da0795...78880b )
by Jens
14:45 queued 18s
created

InStoreEndpoint   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A endpoint() 0 3 1
1
<?php
2
/**
3
 */
4
5
namespace Commercetools\Core\Request\InStores;
6
7
use Commercetools\Core\Client\JsonEndpoint;
8
9
/**
10
 * @package Commercetools\Core\Request\InStores
11
 */
12
class InStoreEndpoint
13
{
14
    /**
15
     * @param string $storeKey
16
     * @return JsonEndpoint
17
     */
18 15
    public static function endpoint($storeKey)
19
    {
20 15
        return new JsonEndpoint('in-store/key=' . $storeKey . '/');
21
    }
22
}
23