Passed
Branch tracked-changes-1.0 (52237f)
by Jonathan
18:39
created

TrackedChanges::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 9.8666
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * ReportingCloud PHP SDK
6
 *
7
 * PHP SDK for ReportingCloud Web API. Authored and supported by Text Control GmbH.
8
 *
9
 * @link      https://www.reporting.cloud to learn more about ReportingCloud
10
 * @link      https://github.com/TextControl/txtextcontrol-reportingcloud-php for the canonical source repository
11
 * @license   https://raw.githubusercontent.com/TextControl/txtextcontrol-reportingcloud-php/master/LICENSE.md
12
 * @copyright © 2019 Text Control GmbH
13
 */
14
15
namespace TxTextControl\ReportingCloud\PropertyMap;
16
17
/**
18
 * TrackedChanges property map
19
 *
20
 * @package TxTextControl\ReportingCloud
21
 * @author  Jonathan Maron (@JonathanMaron)
22
 */
23
class TrackedChanges extends AbstractPropertyMap
24
{
25
    /**
26
     * Set the property map of TrackedChanges
27
     */
28 6
    public function __construct()
29
    {
30
        //@todo Updated case of properties
31
        $map = [
32 6
            'changeKind'            => 'change_kind',
33
            'changeTime'            => 'change_time',
34
            'defaultHighlightColor' => 'default_highlight_color',
35
            'highlightColor'        => 'highlight_color',
36
            'highlightMode'         => 'highlight_mode',
37
            'length'                => 'length',
38
            'start'                 => 'start',
39
            'id'                    => 'id',
40
            'text'                  => 'text',
41
            'userName'              => 'username',
42
        ];
43
44 6
        $this->setMap($map);
45 6
    }
46
}
47