src/Core/ChargedMassTrait.php
public function setMonoisotopicMassCharge($massCharge, $charge)
    {
        $this->setMonoisotopicMass($this->getNeutralMass($massCharge, $charge));
        $this->setCharge($charge);
    }
public function setMonoisotopicMassCharge($massCharge, $charge)
    {
        $this->setMonoisotopicMass($this->getNeutralMass($massCharge, $charge));
        $this->setCharge($charge);
    }
public function setMonoisotopicMassCharge ( $ massCharge , $ charge ) { $ this -> setMonoisotopicMass ( $ this -> getNeutralMass ( $ massCharge , $ charge ) ) ; $ this -> setCharge ( $ charge ) ; }
Sets the monoisotopic mass-to-charge ratio for this instance.

@param float $massCharge
The mass-to-charge ratio to set to
@param int $charge
The charge associated with the $massCharge
@throws \InvalidArgumentException If $mz is not a valid floating point value
Sets the monoisotopic mass - to - charge ratio for this instance .