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

Pattern   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRegex() 0 3 1
A __construct() 0 3 1
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