Substitution::getFrom()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
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 1111
    public function __construct(Word $from, Word $to)
16
    {
17 1111
        $this->from = $from;
18 1111
        $this->to   = $to;
19 1111
    }
20
21 1110
    public function getFrom() : Word
22
    {
23 1110
        return $this->from;
24
    }
25
26 1110
    public function getTo() : Word
27
    {
28 1110
        return $this->to;
29
    }
30
}
31