ArticleType::all()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Article\Entity;
4
5
class ArticleType
6
{
7
    const POST = 1;
8
    const VIDEO = 2;
9
    const EVENT = 3;
10
    const DISCUSSION = 4;
11
12
    public static function all()
13
    {
14
        return [
15
            self::POST       => 'Post',
16
            self::VIDEO      => 'Video',
17
            self::EVENT      => 'Event',
18
            self::DISCUSSION => 'Discussion',
19
        ];
20
    }
21
}
22