src/Core/Identification.php
public function setIonsMatched($ionsMatched)
    {
        if (! is_int($ionsMatched)) {
            throw new \InvalidArgumentException(
                'Argument 1 must be an int value. Valued passed is of type ' . gettype($ionsMatched));
        }
        
        $this->ionsMatched = $ionsMatched;
    }
public function setIonsMatched($ionsMatched)
    {
        if (! is_int($ionsMatched)) {
            throw new \InvalidArgumentException(
                'Argument 1 must be an int value. Valued passed is of type ' . gettype($ionsMatched));
        }
        
        $this->ionsMatched = $ionsMatched;
    }
public function setIonsMatched ( $ ionsMatched ) { if ( ! is_int ( $ ionsMatched ) ) { throw new \ InvalidArgumentException ( 'Argument 1 must be an int value. Valued passed is of type ' . gettype ( $ ionsMatched ) ) ; } $ this -> ionsMatched = $ ionsMatched ; }
Sets the the number of fragment ions matched

@param int $ionsMatched
The number of ions matched
@throws \InvalidArgumentException If the arguments do not match the data types
Sets the the number of fragment ions matched