Passed
Push — master ( 989424...9f50f4 )
by Jonathan
29s
created

Substitution::getFrom()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules;
6
7
final class Substitution
8
{
9
    /** @var Word */
10
    private $from;
11
12
    /** @var Word */
13
    private $to;
14
15 764
    public function __construct(Word $from, Word $to)
16
    {
17 764
        $this->from = $from;
18 764
        $this->to   = $to;
19 764
    }
20
21 763
    public function getFrom() : Word
22
    {
23 763
        return $this->from;
24
    }
25
26 763
    public function getTo() : Word
27
    {
28 763
        return $this->to;
29
    }
30
}
31