Passed
Pull Request — master (#7)
by Jonathan
06:00
created

IncorrectWord   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
ccs 9
cts 9
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 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 © 2017 Text Control GmbH
12
 */
13
14
namespace TxTextControl\ReportingCloud\PropertyMap;
15
16
/**
17
 * IncorrectWord property map
18
 *
19
 * @package TxTextControl\ReportingCloud
20
 * @author  Jonathan Maron (@JonathanMaron)
21
 */
22
class IncorrectWord extends AbstractPropertyMap
23
{
24
    /**
25
     * Set the property map of IncorrectWord
26
     */
27 2
    public function __construct()
28
    {
29 2
        $this->setMap([
30 2
            'length'      => 'length',
31 2
            'start'       => 'start',
32 2
            'text'        => 'text',
33 2
            'isDuplicate' => 'is_duplicate',
34 2
            'language'    => 'language',
35 2
        ]);
36 2
    }
37
}
38