Ejemplo n.º 1
0
 public static function watch()
 {
     $temp = Sensor::getTemperature();
     if ($temp < -50 || $temp > 50) {
         throw new RangeException('The sennor broke down');
     }
 }