Passed
Pull Request — master (#90)
by Jonathan
02:36
created

Rule   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 22
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFrom() 0 3 1
A getTo() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules;
6
7
class Rule
8
{
9
    /** @var string */
10
    private $from;
11
12
    /** @var string */
13
    private $to;
14
15 539
    public function __construct(string $from, string $to)
16
    {
17 539
        $this->from = $from;
18 539
        $this->to   = $to;
19 539
    }
20
21 534
    public function getFrom() : string
22
    {
23 534
        return $this->from;
24
    }
25
26 533
    public function getTo() : string
27
    {
28 533
        return $this->to;
29
    }
30
}
31