PolarNotification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 15 1
1
<?php
2
3
namespace PolarAdmin\Polar\Http\Resources;
4
5
use Illuminate\Http\Resources\Json\JsonResource;
6
7
class PolarNotification extends JsonResource
8
{
9
    public function toArray($request)
10
    {
11
        return [
12
            'id' => $this->id,
13
            'user_id' => $this->user_id,
14
            'from' => $this->from,
15
            'status' => $this->status,
16
            'body' => $this->body,
17
            'url' => $this->url,
18
            'extra' => $this->extra,
19
            'read' => $this->read,
20
            'updated_at' => $this->updated_at,
21
            'created_at' => $this->created_at,
22
        ];
23
    }
24
}
25