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

DocumentSettings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 10
dl 0
loc 18
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 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