HasMeta   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMeta() 0 3 1
A setMeta() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Swis\JsonApi\Client\Concerns;
6
7
use Swis\JsonApi\Client\Meta;
8
9
trait HasMeta
10
{
11
    /**
12
     * @var \Swis\JsonApi\Client\Meta|null
13
     */
14
    protected $meta;
15
16 232
    public function getMeta(): ?Meta
17
    {
18 232
        return $this->meta;
19
    }
20
21
    /**
22
     * @return $this
23
     */
24 212
    public function setMeta(?Meta $meta)
25
    {
26 212
        $this->meta = $meta;
27
28 212
        return $this;
29
    }
30
}
31