public static function fromFile(string $filename): PhpClass {
		$class = new PhpClass();
		$parser = new FileParser($filename);
		$parser->addVisitor(new ClassParserVisitor($class));
		$parser->addVisitor(new MethodParserVisitor($class));
		$parser->addVisitor(new ConstantParserVisitor($class));
		$parser->addVisitor(new PropertyParserVisitor($class));
		$parser->parse();

		return $class;
	}
public static function fromFile(string $filename): PhpClass {
		$class = new PhpClass();
		$parser = new FileParser($filename);
		$parser->addVisitor(new ClassParserVisitor($class));
		$parser->addVisitor(new MethodParserVisitor($class));
		$parser->addVisitor(new ConstantParserVisitor($class));
		$parser->addVisitor(new PropertyParserVisitor($class));
		$parser->parse();

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

@param string $filename
@return PhpClass
Creates a PHP class from file