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 float |
||
39 | */ |
||
40 | private $version; |
||
41 | |||
42 | 105 | /** |
|
43 | * Class constructor |
||
44 | 105 | * |
|
45 | * @param null $path the physical path to the git binary |
||
46 | 104 | */ |
|
47 | public function __construct(string $path = null) |
||
55 | |||
56 | /** |
||
57 | 101 | * path getter |
|
58 | * returns the path of the binary |
||
59 | 101 | * |
|
60 | * @return mixed |
||
61 | */ |
||
62 | public function getPath() |
||
66 | |||
67 | 105 | /** |
|
68 | * path setter |
||
69 | 105 | * |
|
70 | 105 | * @param string $path the path to the system git binary |
|
71 | */ |
||
72 | public function setPath(string $path) |
||
76 | |||
77 | /** |
||
78 | * @return float|string |
||
79 | */ |
||
80 | public function getVersion() |
||
90 | } |
||
91 |