public function add(Decimal $b, int $scale = null): Decimal
    {
        self::paramsValidation($b, $scale);

        return self::fromString(
            \bcadd($this->value, $b->value, \max($this->scale, $b->scale)),
            $scale
        );
    }
public function add(Decimal $b, int $scale = null): Decimal
    {
        self::paramsValidation($b, $scale);

        return self::fromString(
            \bcadd($this->value, $b->value, \max($this->scale, $b->scale)),
            $scale
        );
    }
public function add ( Decimal $ b , int $ scale = null ) : Decimal { self :: paramsValidation ( $ b , $ scale ) ; return self :: fromString ( \ bcadd ( $ this -> value , $ b -> value , \ max ( $ this -> scale , $ b -> scale ) ) , $ scale ) ; }
Adds two Decimal objects
@param  Decimal  $b
@param  null|int $scale
@return Decimal
Adds two Decimal objects