PolarNotification::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 12
nc 1
nop 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