src/Vatsimphp/Sync/MetarSync.php
public function setAirport($icao)
    {
        if (strlen($icao) != 4) {
            throw new RuntimeException('invalid ICAO code');
        }
        $this->icao = strtoupper($icao);
        $this->cacheFile = "metar-{$this->icao}.txt";
    }
public function setAirport($icao)
    {
        if (strlen($icao) != 4) {
            throw new RuntimeException('invalid ICAO code');
        }
        $this->icao = strtoupper($icao);
        $this->cacheFile = "metar-{$this->icao}.txt";
    }
public function setAirport ( $ icao ) { if ( strlen ( $ icao ) != 4 ) { throw new RuntimeException ( 'invalid ICAO code' ) ; } $ this -> icao = strtoupper ( $ icao ) ; $ this -> cacheFile = "metar-{$this->icao}.txt" ; }
Set airport - cache file is based on this.

@param string $icao

@throws Vatsimphp\Exception\RuntimeException
Set airport - cache file is based on this .