Formats   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFormats() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace BabDev\Transifex\Connector;
4
5
use BabDev\Transifex\ApiConnector;
6
use Psr\Http\Message\ResponseInterface;
7
8
/**
9
 * Transifex API Formats class.
10
 *
11
 * @link http://docs.transifex.com/api/formats/
12
 */
13
final class Formats extends ApiConnector
14
{
15
    /**
16
     * Get the supported file formats.
17
     *
18
     * @return ResponseInterface
19
     */
20 4
    public function getFormats(): ResponseInterface
21
    {
22 4
        return $this->client->sendRequest($this->createRequest('GET', $this->createUri('/api/2/formats')));
23
    }
24
}
25