1 | <?php |
||
28 | class GitBinary |
||
29 | { |
||
30 | /** |
||
31 | * the path to the repository |
||
32 | * |
||
33 | * @var string $path |
||
34 | */ |
||
35 | private $path; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $version; |
||
41 | |||
42 | /** |
||
43 | * Class constructor |
||
44 | * |
||
45 | * @param null $path the physical path to the git binary |
||
46 | */ |
||
47 | 108 | public function __construct(string $path = null) |
|
55 | |||
56 | /** |
||
57 | * path getter |
||
58 | * returns the path of the binary |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | 101 | public function getPath() |
|
66 | |||
67 | /** |
||
68 | * path setter |
||
69 | * |
||
70 | * @param string $path the path to the system git binary |
||
71 | */ |
||
72 | 108 | public function setPath(string $path) |
|
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | 97 | public function getVersion() |
|
90 | } |
||
91 |