Completed
Push — master ( 00c081...e7017e )
by Jasper
24s queued 23s
created

MetaParser   A

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 parse() 0 3 1
1
<?php
2
3
namespace Swis\JsonApi\Client\Parsers;
4
5
use Art4\JsonApiClient\Meta as JsonApiMeta;
6
use Swis\JsonApi\Client\Meta;
7
8
/**
9
 * @internal
10
 */
11
class MetaParser
12
{
13
    /**
14
     * @param \Art4\JsonApiClient\Meta $meta
15
     *
16
     * @return \Swis\JsonApi\Client\Meta
17
     */
18 80
    public function parse(JsonApiMeta $meta): Meta
19
    {
20 80
        return new Meta($meta->asArray(true));
21
    }
22
}
23