Passed
Push — master ( c28222...9253d7 )
by Sebastian
02:41
created

Mailcode_Commands_Keywords   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAll() 0 7 1
1
<?php
2
/**
3
 * File containing the class {@see Mailcode_Commands_Keywords}.
4
 *
5
 * @package Mailcode
6
 * @subpackage Commands
7
 * @see Mailcode_Commands_Keywords
8
 */
9
10
declare(strict_types=1);
11
12
namespace Mailcode;
13
14
/**
15
 * Enum of all available keyword types that can be used
16
 * in commands.
17
 *
18
 * @package Mailcode
19
 * @subpackage Commands
20
 * @author Sebastian Mordziol <[email protected]>
21
 */
22
class Mailcode_Commands_Keywords
23
{
24
    const TYPE_IN = 'in:';
25
    const TYPE_INSENSITIVE = 'insensitive:';
26
    const TYPE_URLENCODE = 'urlencode:';
27
    const TYPE_URLDECODE = 'urldecode:';
28
29
    /**
30
     * @return string[]
31
     */
32
    public static function getAll() : array
33
    {
34
        return array(
35
            self::TYPE_IN,
36
            self::TYPE_INSENSITIVE,
37
            self::TYPE_URLDECODE,
38
            self::TYPE_URLENCODE
39
        );
40
    }
41
}
42