Passed
Pull Request — master (#90)
by Jonathan
02:36
created

Word   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getWord() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules;
6
7
class Word
8
{
9
    /** @var string */
10
    private $word;
11
12 535
    public function __construct(string $word)
13
    {
14 535
        $this->word = $word;
15 535
    }
16
17 425
    public function getWord() : string
18
    {
19 425
        return $this->word;
20
    }
21
}
22