public function import($file)
    {
        if (!file_exists($file)) {
            throw new \InvalidArgumentException("Footprint file '$file' does not exist");
        }
        $content = file_get_contents($file);
        $this->importJson($content);
    }
public function import($file)
    {
        if (!file_exists($file)) {
            throw new \InvalidArgumentException("Footprint file '$file' does not exist");
        }
        $content = file_get_contents($file);
        $this->importJson($content);
    }
public function import ( $ file ) { if ( ! file_exists ( $ file ) ) { throw new \ InvalidArgumentException ( "Footprint file '$file' does not exist" ) ; } $ content = file_get_contents ( $ file ) ; $ this -> importJson ( $ content ) ; }
Import footprints from json file

@param string $file

@return void
Import footprints from json file