isValidPlatformType() public static method

public static isValidPlatformType ( $platformType )
 private function isValidCapabilityAndValue($capabilityType, $value)
 {
     if (CapabilityType::isValidCapabilityType($capabilityType)) {
         switch ($capabilityType) {
             case CapabilityType::BROWSER_NAME:
                 if (!BrowserType::isValidBrowserType($value)) {
                     throw new Exception("'{$value}' is not a valid browser type");
                 }
                 break;
             case CapabilityType::PLATFORM:
                 if (!PlatformType::isValidPlatformType($value)) {
                     throw new Exception("'{$value}' is not a valid platform type");
                 }
                 break;
         }
     } else {
         throw new Exception("'{$capabilityType}' is not a valid capability type");
     }
     return true;
 }