EduPersonAffliation::getAffliations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
ccs 0
cts 6
cp 0
crap 2
rs 10
1
<?php
2
3
namespace App\Saml;
4
5
/**
6
 * Enumeration for EduPersonAffliation
7
 */
8
class EduPersonAffliation {
9
    public const MEMBER = 'member';
10
    public const STAFF = 'staff';
11
    public const STUDENT = 'student';
12
    public const FACULTY = 'factulty';
13
    public const AFFILIATE = 'affiliate';
14
15
    public static function getAffliations(): array {
16
        return [
17
            static::MEMBER,
18
            static::STUDENT,
19
            static::FACULTY,
20
            static::STAFF,
21
            static::AFFILIATE
22
        ];
23
    }
24
}