src/Core/AminoAcidMono.php
public static function getMonoisotopicMass($acid)
    {
        $value = @constant('pgb_liv\php_ms\Core\AminoAcidMono::' . $acid);

        if (! is_null($value)) {
            return $value;
        }

        if (strlen($acid) > 1) {
            throw new \InvalidArgumentException('Value must be a single amino acid. Input was ' . $acid);
        }

        throw new \InvalidArgumentException('Value must be a valid amino acid. Input was ' . $acid);
    }
public static function getMonoisotopicMass($acid)
    {
        $value = @constant('pgb_liv\php_ms\Core\AminoAcidMono::' . $acid);

        if (! is_null($value)) {
            return $value;
        }

        if (strlen($acid) > 1) {
            throw new \InvalidArgumentException('Value must be a single amino acid. Input was ' . $acid);
        }

        throw new \InvalidArgumentException('Value must be a valid amino acid. Input was ' . $acid);
    }
public static function getMonoisotopicMass ( $ acid ) { $ value = @ constant ( 'pgb_liv\php_ms\Core\AminoAcidMono::' . $ acid ) ; if ( ! is_null ( $ value ) ) { return $ value ; } if ( strlen ( $ acid ) > 1 ) { throw new \ InvalidArgumentException ( 'Value must be a single amino acid. Input was ' . $ acid ) ; } throw new \ InvalidArgumentException ( 'Value must be a valid amino acid. Input was ' . $ acid ) ; }
Gets the monoisotopic mass for the provided amino acid.

@param string $acid
Amino acid
@throws \InvalidArgumentException If acid is not a single character or valid amino acid
@return float Monoisotopic mass
Gets the monoisotopic mass for the provided amino acid .