Passed
Push — master ( 77e4b7...db2920 )
by Jonathan
03:29
created

Language::isValid()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 22
Code Lines 12

Duplication

Lines 22
Ratio 100 %

Code Coverage

Tests 12
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 22
loc 22
ccs 12
cts 12
cp 1
rs 9.2
cc 2
eloc 12
nc 2
nop 1
crap 2
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\Validator;
15
16
/**
17
 * Language validator
18
 *
19
 * @package TxTextControl\ReportingCloud
20
 * @author  Jonathan Maron (@JonathanMaron)
21
 */
22
class Language extends AbstractResourceValidator
23
{
24 5
    public function __construct($options = null)
25
    {
26 5
        $filename = realpath(__DIR__ . '/../../resource/dictionaries.php');
27
28 5
        $this->setFilename($filename);
29
30 5
        parent::__construct($options);
31
    }
32
}