Browscap\Data\DataCollection::checkPlatformData PHP Method

checkPlatformData() private method

checks if platform properties are set inside a properties array
private checkPlatformData ( array $properties, string $message )
$properties array
$message string
    private function checkPlatformData(array $properties, $message)
    {
        if (array_key_exists('Platform', $properties) || array_key_exists('Platform_Description', $properties) || array_key_exists('Platform_Maker', $properties) || array_key_exists('Platform_Bits', $properties) || array_key_exists('Platform_Version', $properties) || array_key_exists('Win16', $properties) || array_key_exists('Win32', $properties) || array_key_exists('Win64', $properties) || array_key_exists('Browser_Bits', $properties)) {
            throw new \LogicException($message);
        }
    }