DocumentTypeProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 41
dl 0
loc 55
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAllDocumentTypes() 0 18 1
A getPrimaryDocumentTypes() 0 10 1
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