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

JsonModel::jsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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