NullSource   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRateBetween() 0 4 1
1
<?php
2
3
namespace CL\CurrencyConvert;
4
5
use SebastianBergmann\Money\Currency;
6
7
/**
8
 * @author    Ivan Kerin <[email protected]>
9
 * @copyright 2014, Clippings Ltd.
10
 * @license   http://spdx.org/licenses/BSD-3-Clause
11
 */
12
class NullSource implements SourceInterface
13
{
14
    /**
15
     * @param  Currency $from
16
     * @param  Currency $to
17
     * @return float
18
     */
19 1
    public function getRateBetween(Currency $from, Currency $to)
20
    {
21 1
        return 1.0;
22
    }
23
}
24