src/Core/Modification.php
public function setMonoisotopicMass($mass)
    {
        if (! is_float($mass) && ! is_int($mass)) {
            throw new \InvalidArgumentException(
                'Argument 1 must be a float or integer value. Valued passed is of type ' . gettype($mass));
        }
        
        $this->monoisotopicMass = $mass;
    }
public function setMonoisotopicMass($mass)
    {
        if (! is_float($mass) && ! is_int($mass)) {
            throw new \InvalidArgumentException(
                'Argument 1 must be a float or integer value. Valued passed is of type ' . gettype($mass));
        }
        
        $this->monoisotopicMass = $mass;
    }
public function setMonoisotopicMass ( $ mass ) { if ( ! is_float ( $ mass ) && ! is_int ( $ mass ) ) { throw new \ InvalidArgumentException ( 'Argument 1 must be a float or integer value. Valued passed is of type ' . gettype ( $ mass ) ) ; } $ this -> monoisotopicMass = $ mass ; }
Sets the monoisotopic mass for this modification

@param float $mass
The monoisotopic mass to set
@throws \InvalidArgumentException If argument 1 is not of type float
Sets the monoisotopic mass for this modification