Banago\PHPloy\Git::__construct PHP Метод

__construct() публичный Метод

Git constructor.
public __construct ( null $repo = null )
$repo null
    public function __construct($repo = null)
    {
        $this->repo = $repo;
        $this->branch = $this->command('rev-parse --abbrev-ref HEAD')[0];
        $this->revision = $this->command('rev-parse HEAD')[0];
    }