Completed
Push — master ( 535b5e...300324 )
by Jasper
13s queued 13s
created

HasMeta   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

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