SebastianBergmann\Git\Git::__construct PHP Method

__construct() public method

public __construct ( string $repositoryPath )
$repositoryPath string
    public function __construct($repositoryPath)
    {
        if (!is_dir($repositoryPath)) {
            throw new RuntimeException(sprintf('Directory "%s" does not exist', $repositoryPath));
        }
        $this->repositoryPath = realpath($repositoryPath);
    }