Mike42\Escpos\PrintConnectors\WindowsPrintConnector::getCurrentPlatform PHP Method

getCurrentPlatform() protected method

protected getCurrentPlatform ( ) : string
return string Current platform. Separated out for testing purposes.
    protected function getCurrentPlatform()
    {
        if (PHP_OS == "WINNT") {
            return self::PLATFORM_WIN;
        }
        if (PHP_OS == "Darwin") {
            return self::PLATFORM_MAC;
        }
        return self::PLATFORM_LINUX;
    }