Completed
Push — master ( 9d6b90...0a141c )
by Randy
11:08
created

FloatExpectations   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepare() 0 4 1
1
<?php
2
3
namespace Dgame\Expectation;
4
5
/**
6
 * Class FloatExpectations
7
 * @package Dgame\Expectation
8
 */
9
final class FloatExpectations extends NumericExpectations
10
{
11
    /**
12
     * @param $value
13
     *
14
     * @return float
15
     */
16
    protected function prepare($value): float
17
    {
18
        return (float) $value;
19
    }
20
}