public function hasSameSign(Decimal $b): bool
    {
        return $this->isPositive() && $b->isPositive() || $this->isNegative() && $b->isNegative();
    }
public function hasSameSign(Decimal $b): bool
    {
        return $this->isPositive() && $b->isPositive() || $this->isNegative() && $b->isNegative();
    }
public function hasSameSign ( Decimal $ b ) : bool { return $ this -> isPositive ( ) && $ b -> isPositive ( ) || $ this -> isNegative ( ) && $ b -> isNegative ( ) ; }
Indicates if the passed parameter has the same sign as the method's bound object.

@param Decimal $b
@return bool
Indicates if the passed parameter has the same sign as the method s bound object .