public static function fromAccessPointScannerResponse($response)
{
$instance = new self();
foreach (explode("\n", $response) as $airportAccessPoint) {
if (preg_match(self::PATTERN_AIRPORT_LINE_SCAN, $airportAccessPoint, $matches)) {
$instance->accessPoints[] = WifiAccessPoint::fromArrayDefinition([WifiAccessPoint::DEFINITION_MAC_ADDRESS => $matches[2], WifiAccessPoint::DEFINITION_SIGNAL_TO_NOISE_RATION => intval($matches[3]), WifiAccessPoint::DEFINITION_CHANNEL => intval($matches[4])]);
}
}
return $instance;
}