MoneySpeller::spell()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 4
dl 0
loc 8
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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