public static function fromFile(string $filename): PhpInterface {
		$interface = new PhpInterface();
		$parser = new FileParser($filename);
		$parser->addVisitor(new InterfaceParserVisitor($interface));
		$parser->addVisitor(new MethodParserVisitor($interface));
		$parser->addVisitor(new ConstantParserVisitor($interface));
		$parser->parse();

		return $interface;
	}
public static function fromFile(string $filename): PhpInterface {
		$interface = new PhpInterface();
		$parser = new FileParser($filename);
		$parser->addVisitor(new InterfaceParserVisitor($interface));
		$parser->addVisitor(new MethodParserVisitor($interface));
		$parser->addVisitor(new ConstantParserVisitor($interface));
		$parser->parse();

		return $interface;
	}
public static function fromFile ( string $ filename ) : PhpInterface { $ interface = new PhpInterface ( ) ; $ parser = new FileParser ( $ filename ) ; $ parser -> addVisitor ( new InterfaceParserVisitor ( $ interface ) ) ; $ parser -> addVisitor ( new MethodParserVisitor ( $ interface ) ) ; $ parser -> addVisitor ( new ConstantParserVisitor ( $ interface ) ) ; $ parser -> parse ( ) ; return $ interface ; }
Creates a PHP interface from file

@param string $filename
@return PhpInterface
Creates a PHP interface from file