Passed
Branch append-document-1.0 (2fd487)
by Jonathan
17:18
created

DocumentSettings::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 10
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 13
ccs 10
cts 10
cp 1
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * ReportingCloud PHP Wrapper
5
 *
6
 * PHP wrapper for ReportingCloud Web API. Authored and supported by Text Control GmbH.
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 © 2018 Text Control GmbH
12
 */
13
14
namespace TxTextControl\ReportingCloud\PropertyMap;
15
16
/**
17
 * DocumentSettings property map
18
 *
19
 * @package TxTextControl\ReportingCloud
20
 * @author  Jonathan Maron (@JonathanMaron)
21
 */
22
class DocumentSettings extends AbstractPropertyMap
23
{
24
    /**
25
     * Set the property map of DocumentSettings
26
     */
27 4
    public function __construct()
28
    {
29
        $map = [
30 4
            'author'               => 'author',
31 2
            'creationDate'         => 'creation_date',
32 2
            'creatorApplication'   => 'creator_application',
33 2
            'documentSubject'      => 'document_subject',
34 2
            'documentTitle'        => 'document_title',
35 2
            'lastModificationDate' => 'last_modification_date',
36 2
            'userPassword'         => 'user_password',
37 2
        ];
38
39 4
        $this->setMap($map);
40 4
    }
41
}
42