Gitonomy\Git\Repository::getPath PHP Метод

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

Returns the path to the git repository.
public getPath ( ) : string
Результат string A directory path
    public function getPath()
    {
        return $this->workingDir === null ? $this->gitDir : $this->workingDir;
    }

Usage Example

Пример #1
0
 /**
  * @inheritdoc
  */
 public function getName(Repository $repository)
 {
     $name = basename($repository->getPath());
     if (preg_match('/^(.*)\\.git$/', $name, $vars)) {
         return $vars[1];
     }
     return $name;
 }
All Usage Examples Of Gitonomy\Git\Repository::getPath