PingResponder   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 33.33%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 13
ccs 2
cts 6
cp 0.3333
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A isBinaryResponder() 0 3 1
A writeJson() 0 2 1
A writeXml() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Usox\HyperSonic\FeatureSet\V1161\Responder;
6
7
use AaronDDM\XMLBuilder\XMLArray;
8
use Usox\HyperSonic\Response\FormattedResponderInterface;
9
10
/**
11
 * Responder for the `ping` method
12
 */
13
final class PingResponder implements FormattedResponderInterface
14
{
15
    public function writeXml(XMLArray $XMLArray): void
16
    {
17
    }
18
19
    public function writeJson(array &$root): void
20
    {
21
    }
22
23 1
    public function isBinaryResponder(): bool
24
    {
25 1
        return false;
26
    }
27
}
28