Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | class ExaminationStudentsExport implements FromQuery , WithHeadings |
||
14 | { |
||
15 | |||
16 | use Exportable; |
||
|
|||
17 | |||
18 | public function __construct($year,$grade) |
||
19 | { |
||
20 | $this->year = $year; |
||
21 | $this->grade = $grade; |
||
22 | } |
||
23 | |||
24 | public function headings(): array |
||
25 | { |
||
26 | return [ |
||
27 | 'st_no', |
||
28 | 'stu_no', |
||
29 | 'nsid', |
||
30 | 'schoolid', |
||
31 | 'f_name', |
||
32 | 'medium', |
||
33 | 'b_date', |
||
34 | 'gender', |
||
35 | 'pvt_address', |
||
36 | 'a_income', |
||
37 | 'spl_need', |
||
38 | 'disability_type', |
||
39 | 'disability', |
||
40 | 'sp_center', |
||
41 | 'created_at', |
||
42 | 'updated_at' |
||
43 | ]; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return \Illuminate\Support\Collection |
||
48 | */ |
||
49 | public function query() |
||
55 | } |
||
56 | } |
||
57 |