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

Pattern::__construct()   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 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules;
6
7
class Pattern
8
{
9
    /** @var string */
10
    private $regex;
11
12
    public function __construct(string $regex)
13
    {
14
        $this->regex = $regex;
15
    }
16
17
    public function getRegex() : string
18
    {
19
        return $this->regex;
20
    }
21
}
22