public static function create($faultString, $faultCode)
    {
        if (!isset(self::$exceptionMap[$faultCode])) {
            return new self($faultString, $faultCode);
        }

        return new self::$exceptionMap[$faultCode]($faultString, $faultCode);
    }
public static function create($faultString, $faultCode)
    {
        if (!isset(self::$exceptionMap[$faultCode])) {
            return new self($faultString, $faultCode);
        }

        return new self::$exceptionMap[$faultCode]($faultString, $faultCode);
    }
public static function create ( $ faultString , $ faultCode ) { if ( ! isset ( self :: $ exceptionMap [ $ faultCode ] ) ) { return new self ( $ faultString , $ faultCode ) ; } return new self :: $ exceptionMap [ $ faultCode ] ( $ faultString , $ faultCode ) ; }
Creates a new Fault.

If there is a mach for the fault code in the exception map then the matched exception will be returned

@param string $faultString
@param int    $faultCode

@return self
Creates a new Fault .