Passed
Pull Request — master (#97)
by Jonathan
02:07
created

Regex::getReplacement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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