src/Popolo.php
public static function fromFilename($filename)
    {
        $contents = file_get_contents($filename);
        $jsonData = json_decode($contents, true);
        $instance = new self($jsonData);
        return $instance;
    }
public static function fromFilename($filename)
    {
        $contents = file_get_contents($filename);
        $jsonData = json_decode($contents, true);
        $instance = new self($jsonData);
        return $instance;
    }
public static function fromFilename ( $ filename ) { $ contents = file_get_contents ( $ filename ) ; $ jsonData = json_decode ( $ contents , true ) ; $ instance = new self ( $ jsonData ) ; return $ instance ; }
Construct from filename

@param string $filename name of Popolo json file

@return $this
Construct from filename