BasePluralization   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 37
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A pluralize() 0 3 1
A getCase() 0 3 1
A getCases() 0 3 1
1
<?php
2
namespace morphos;
3
4
use RuntimeException;
5
6
abstract class BasePluralization
7
{
8
    /**
9
     * @abstract
10
     * @param string $word
11
     * @param int $count
12
     *
13
     * @return string
14
     */
15
    public static function pluralize($word, $count = 2) {
16
        throw new RuntimeException('Not implemented');
17
    }
18
19
    /**
20
     * @abstract
21
     * @param string $word
22
     * @param string $case
23
     * @param bool $animateness
24
     *
25
     * @return string
26
     */
27
    public static function getCase($word, $case, $animateness = false) {
28
        throw new RuntimeException('Not implemented');
29
    }
30
31
    /**
32
     * @abstract
33
     * @param string $word
34
     * @param bool $animateness
35
     *
36
     * @return string[]
37
     * @phpstan-return array<string, string>
38
     */
39
    public static function getCases($word, $animateness = false) {
40
        throw new RuntimeException('Not implemented');
41
    }
42
}
43