Passed
Push — master ( a5432c...54cbff )
by Marcel
16:00
created

StudentGrades::getGrades()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Book\Export;
4
5
class StudentGrades {
6
    private array $categories;
7
8
    private array $grades;
9
10
    public function addCategory(TuitionGradeCategory $category): self {
11
        $this->categories[] = $category;
12
        return $this;
13
    }
14
15
    /**
16
     * @return TuitionGradeCategory[]
17
     */
18
    public function getCategories(): array {
19
        return $this->categories;
20
    }
21
22
    /**
23
     * @return TuitionGrade[]
24
     */
25
    public function getGrades(): array {
26
        return $this->grades;
27
    }
28
29
    public function addGrade(TuitionGrade $grade): void {
30
        $this->grades[] = $grade;
31
    }
32
}