Passed
Push — master ( c1f9a4...4b0053 )
by Rimas
02:42 queued 32s
created

DocumentTypeProvider::getAllDocumentTypes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 18
c 0
b 0
f 0
rs 9.7333
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Dokobit\Gateway;
4
5
abstract class DocumentTypeProvider
6
{
7
    const PDF = 'pdf';
8
    const PDFLT = 'pdflt';
9
10
    const ASIC = 'asic';
11
    const ASICE = 'asice';
12
13
    const ADOC = 'adoc';
14
    const ADOC_BEDOC = 'adoc.bedoc';
15
    const ADOC_CEDOC = 'adoc.cedoc';
16
    const ADOC_GEDOC = 'adoc.gedoc';
17
    const ADOC_GGEDOC = 'adoc.ggedoc';
18
19
    const MDOC = 'mdoc';
20
    const MDOC_BEDOC = 'mdoc.bedoc';
21
    const MDOC_CEDOC = 'mdoc.cedoc';
22
    const MDOC_GEDOC = 'mdoc.gedoc';
23
    const MDOC_GGEDOC = 'mdoc.ggedoc';
24
25
    const BDOC = 'bdoc';
26
27
    const EDOC = 'edoc';
28
29
    final public static function getAllDocumentTypes()
30
    {
31
        return [
32
            self::PDF,
33
            self::PDFLT,
34
            self::ASICE,
35
            self::ADOC,
36
            self::ADOC_BEDOC,
37
            self::ADOC_CEDOC,
38
            self::ADOC_GEDOC,
39
            self::ADOC_GGEDOC,
40
            self::MDOC,
41
            self::MDOC_BEDOC,
42
            self::MDOC_CEDOC,
43
            self::MDOC_GEDOC,
44
            self::MDOC_GGEDOC,
45
            self::BDOC,
46
            self::EDOC
47
        ];
48
    }
49
50
    final public static function getPrimaryDocumentTypes()
51
    {
52
        return [
53
            self::PDF,
54
            self::PDFLT,
55
            self::ASIC,
56
            self::ADOC,
57
            self::MDOC,
58
            self::BDOC,
59
            self::EDOC
60
        ];
61
    }
62
}
63