TQ\Vcs\Repository\AbstractRepository::__construct PHP Method

__construct() protected method

Creates a new repository instance - use {@see open()} instead
protected __construct ( string $repositoryPath )
$repositoryPath string
    protected function __construct($repositoryPath)
    {
        $this->repositoryPath = rtrim($repositoryPath, '/');
    }

Usage Example

Example #1
0
 /**
  * Creates a new repository instance - use {@see open()} instead
  *
  * @param   string     $repositoryPath
  * @param   Binary     $git
  */
 protected function __construct($repositoryPath, Binary $git)
 {
     $this->git = $git;
     parent::__construct($repositoryPath);
 }
All Usage Examples Of TQ\Vcs\Repository\AbstractRepository::__construct