Completed
Push — master ( eebd52...3cd9a5 )
by ARCANEDEV
08:34
created

PostStatus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A keys() 0 7 1
1
<?php namespace Arcanesoft\Blog\Entities;
2
3
/**
4
 * Class     PostStatus
5
 *
6
 * @package  Arcanesoft\Blog\Entities
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class PostStatus
10
{
11
    /* ------------------------------------------------------------------------------------------------
12
     |  Constants
13
     | ------------------------------------------------------------------------------------------------
14
     */
15
    const STATUS_DRAFT     = 'draft';
16
    const STATUS_PUBLISHED = 'published';
17
18
    /* ------------------------------------------------------------------------------------------------
19
     |  Main Functions
20
     | ------------------------------------------------------------------------------------------------
21
     */
22
    /**
23
     * Get all posts status keys.
24
     *
25
     * @return array
26
     */
27
    public static function keys()
28
    {
29
        return [
30
            self::STATUS_DRAFT,
31
            self::STATUS_PUBLISHED,
32
        ];
33
    }
34
}
35