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

Mailcode_Commands_Keywords::getAll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
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