src/Core/Spectra/PrecursorIon.php
public function setScan($scan)
    {
        if (! (is_int($scan) || is_float($scan))) {
            throw new \InvalidArgumentException(
                'Argument 1 must be of type int or float. Value is of type ' . gettype($scan));
        }

        $this->scan = $scan;
    }
public function setScan($scan)
    {
        if (! (is_int($scan) || is_float($scan))) {
            throw new \InvalidArgumentException(
                'Argument 1 must be of type int or float. Value is of type ' . gettype($scan));
        }

        $this->scan = $scan;
    }
public function setScan ( $ scan ) { if ( ! ( is_int ( $ scan ) || is_float ( $ scan ) ) ) { throw new \ InvalidArgumentException ( 'Argument 1 must be of type int or float. Value is of type ' . gettype ( $ scan ) ) ; } $ this -> scan = $ scan ; }
Sets the scan number for this precursor

@param int|float $scan
Scan number to set
@throws \InvalidArgumentException
Sets the scan number for this precursor