JsonApiObjectProviderTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 7
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getJsonApi() 0 4 1
1
<?php
2
3
namespace hiapi\jsonApi;
4
5
use WoohooLabs\Yin\JsonApi\Schema\JsonApiObject;
6
7
/**
8
 * Trait JsonApiObjectProviderTrait
9
 *
10
 * @author Dmytro Naumenko <[email protected]>
11
 */
12
trait JsonApiObjectProviderTrait
13
{
14
    public function getJsonApi(): ?JsonApiObject
15
    {
16
        return new JsonApiObject("1.0");
17
    }
18
}
19