Passed
Push — feature/post-covid-application... ( 4340d4...92a3aa )
by Yonathan
08:31 queued 01:05
created

JobApplicationBasic   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 17 1
1
<?php
2
3
namespace App\Http\Resources;
4
5
use Illuminate\Http\Resources\Json\JsonResource;
6
7
class JobApplicationBasic extends JsonResource
8
{
9
    /**
10
     * Transform the resource into an array. Returns
11
     * a subset of the Application properties used on the Basic
12
     * Info Application step.
13
     *
14
     * @param  \Illuminate\Http\Request  $request
15
     * @return array
16
     */
17
    public function toArray($request)
18
    {
19
        return [
20
            'id' => $this->id,
21
            'job_poster_id' => $this->job_poster_id,
22
            'application_status_id' => $this->application_status_id,
23
            'citizenship_declaration_id' => $this->citizenship_declaration_id,
24
            'veteran_status_id' => $this->veteran_status_id,
25
            'applicant_id' => $this->applicant_id,
26
            'applicant_snapshot_id' => $this->applicant_snapshot_id,
27
            'language_requirement_confirmed' => $this->language_requirement_confirmed,
28
            'language_test_confirmed' => $this->language_test_confirmed,
29
            'education_requirement_confirmed' => $this->education_requirement_confirmed,
30
            'user_name' => $this->user_name,
31
            'user_email' => $this->user_email,
32
            'created_at' => $this->created_at,
33
            'updated_at' => $this->updated_at,
34
        ];
35
    }
36
}
37