ArticleType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 9 1
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