Completed
Push — master ( 027c33...8d74e7 )
by
unknown
03:32
created

Rule::isStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: harry
5
 * Date: 2/15/18
6
 * Time: 5:05 PM
7
 */
8
9
namespace PluginSimpleValidate;
10
11
class Rule implements \PluginSimpleValidate\Contracts\Rule
12
{
13
    /**
14
     * @var string
15
     */
16
    private $validationMethod;
17
18
    /**
19
     * @var string
20
     */
21
    private $langKey;
22
23 3
    public function __construct(string $validationMethod, string $langKey)
24
    {
25 3
        $this->validationMethod = $validationMethod;
26 3
        $this->langKey = $langKey;
27 3
    }
28
29
    /**
30
     * @return string
31
     */
32 3
    public function getValidationMethod(): string
33
    {
34 3
        return $this->validationMethod;
35
    }
36
37
    /**
38
     * @return string
39
     */
40 3
    public function getLangKey(): string
41
    {
42 3
        return $this->langKey;
43
    }
44
}