Completed
Push — master ( 2ac606...daf487 )
by Jonathan
08:49
created

TemplateInfo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 14
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 15
ccs 14
cts 14
cp 1
rs 9.4285
cc 1
eloc 12
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * ReportingCloud PHP Wrapper
5
 *
6
 * Official wrapper (authored by Text Control GmbH, publisher of ReportingCloud) to access ReportingCloud in PHP.
7
 *
8
 * @link      http://www.reporting.cloud to learn more about ReportingCloud
9
 * @link      https://github.com/TextControl/txtextcontrol-reportingcloud-php for the canonical source repository
10
 * @license   https://raw.githubusercontent.com/TextControl/txtextcontrol-reportingcloud-php/master/LICENSE.md
11
 * @copyright © 2016 Text Control GmbH
12
 */
13
namespace TxTextControl\ReportingCloud\PropertyMap;
14
15
/**
16
 * TemplateInfo property map
17
 *
18
 * @package TxTextControl\ReportingCloud
19
 * @author  Jonathan Maron (@JonathanMaron)
20
 */
21
class TemplateInfo extends AbstractPropertyMap
22
{
23
    /**
24
     * Set the property map of TemplateInfo
25
     */
26 2
    public function __construct()
27
    {
28 2
        $this->setMap([
29 2
            'dateTimeFormat'     => 'date_time_format',
30 2
            'mergeBlocks'        => 'merge_blocks',
31 2
            'mergeFields'        => 'merge_fields',
32 2
            'name'               => 'name',
33 2
            'numericFormat'      => 'numeric_format',
34 2
            'preserveFormatting' => 'preserve_formatting',
35 2
            'templateName'       => 'template_name',
36 2
            'text'               => 'text',
37 2
            'textAfter'          => 'text_after',
38 2
            'textBefore'         => 'text_before',
39 2
        ]);
40 2
    }
41
}
42
43
44