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

Substitution::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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