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

MutableFraction::setValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
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
}