Completed
Pull Request — master (#399)
by Anton
04:15
created

JsonSerialize   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 4 1
1
<?php
2
/**
3
 * Bluz Framework Component
4
 *
5
 * @copyright Bluz PHP Team
6
 * @link https://github.com/bluzphp/framework
7
 */
8
9
declare(strict_types=1);
10
11
namespace Bluz\Common\Container;
12
13
/**
14
 * Container implements JsonSerializable interface
15
 *
16
 * @package  Bluz\Common
17
 * @author   Anton Shevchuk
18
 * @see      JsonSerializable
19
 *
20
 * @method   array toArray()
21
 */
22
trait JsonSerialize
23
{
24
    /**
25
     * Specify data which should be serialized to JSON
26
     *
27
     * @return array
28
     */
29
    public function jsonSerialize()
30
    {
31
        return $this->toArray();
32
    }
33
}
34