Formats::getFormats()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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