MoneySpeller   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 25
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A spell() 0 8 1
1
<?php
2
namespace morphos;
3
4
use RuntimeException;
5
6
abstract class MoneySpeller implements Currency
7
{
8
    const SHORT_FORMAT = 'short';
9
    const NORMAL_FORMAT = 'normal';
10
    const CLARIFICATION_FORMAT = 'clarification';
11
    const DUPLICATION_FORMAT = 'duplication';
12
13
    /**
14
     * @abstract
15
     *
16
     * @param float|int  $value
17
     * @param string $currency
18
     * @param string $format
19
     * @param string|null   $case
20
     * @return string
21
     */
22
    public static function spell(
23
        $value,
24
        $currency,
25
        $format = self::NORMAL_FORMAT,
26
        $case = null
27
    ) {
28
        throw new RuntimeException('Not implemented');
29
    }
30
}
31