Completed
Push — dev ( 4ac9b0...4aa37c )
by Jordan
02:05
created

MutableFraction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setValue() 0 9 1
1
<?php
2
3
namespace Samsara\Fermat\Values;
4
5
use Samsara\Fermat\Types\Fraction;
6
use Samsara\Fermat\Values\Base\FractionInterface;
7
use Samsara\Fermat\Values\Base\NumberInterface;
8
9
class MutableFraction extends Fraction implements NumberInterface, FractionInterface
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: abs, absValue, compare, convertForModification, convertFromModification, convertToBase, divide, equals, getBase, getValue, greaterThan, greaterThanOrEqualTo, isNegative, isPositive, lessThan, lessThanOrEqualTo, multiply, pow, sqrt, subtract
Loading history...
10
{
11
12
    protected function setValue(ImmutableNumber $numerator, ImmutableNumber $denominator)
13
    {
14
15
        $this->numerator = $numerator;
16
        $this->denominator = $denominator;
17
18
        return $this;
19
20
    }
21
22
}