Passed
Push — master ( c31bb3...2d0628 )
by Gabriel
11:05
created

JsonModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 3 1
1
<?php
2
3
namespace Nip\Utility\Tests\Fixtures;
4
5
/**
6
 * Class BaseClass
7
 * @package Nip\Utility\Tests\Fixtures
8
 */
9
class JsonModel extends BaseClass implements \JsonSerializable
10
{
11
    public $data = ['json' => 'serializable'];
12
13
    public function jsonSerialize(): array
14
    {
15
        return $this->data;
16
    }
17
}
18