HealthCheck   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 6 1
1
<?php
2
namespace Health\Resources;
3
4
use Illuminate\Http\Resources\Json\JsonResource;
5
6
/**
7
 * Health Check Resource
8
 *
9
 * @method string getName()
10
 * @method string getState()
11
 * @method array getData()
12
 */
13
class HealthCheck extends JsonResource
14
{
15
16
    public function toArray($request)
17
    {
18
        return [
19
            'name' => $this->getName(),
20
            'status' => $this->getState(),
21
            'data' => $this->getData()
22
        ];
23
    }
24
}
25