lib/Cvss/Cvss3.php
public function getVector($omitUndefined = true)
    {
        $metrics = [];
        foreach ($this->vectorInputs as $name => $value) {
            if ($value != 'X' || !$omitUndefined) {
                $metrics[$name] = $value;
            }
        }

        return self::buildVector($metrics);
    }
public function getVector($omitUndefined = true)
    {
        $metrics = [];
        foreach ($this->vectorInputs as $name => $value) {
            if ($value != 'X' || !$omitUndefined) {
                $metrics[$name] = $value;
            }
        }

        return self::buildVector($metrics);
    }
public function getVector ( $ omitUndefined = true ) { $ metrics = [ ] ; foreach ( $ this -> vectorInputs as $ name => $ value ) { if ( $ value != 'X' || ! $ omitUndefined ) { $ metrics [ $ name ] = $ value ; } } return self :: buildVector ( $ metrics ) ; }
Get full vector

@param bool $omitUndefined Do not include metrics that are not defined (ex:MPR:X)

@return string
Get full vector