1 | <?php |
||
28 | abstract class AbstractCaller implements CallerInterface |
||
29 | { |
||
30 | /** |
||
31 | * Git binary path |
||
32 | * |
||
33 | * @var string|null |
||
34 | */ |
||
35 | protected $binaryPath; |
||
36 | |||
37 | /** |
||
38 | * Git binary version |
||
39 | * |
||
40 | * @var string|null |
||
41 | */ |
||
42 | protected $binaryVersion; |
||
43 | |||
44 | /** |
||
45 | * the output lines of the command |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $outputLines = []; |
||
50 | |||
51 | /** |
||
52 | * raw output of the command |
||
53 | * |
||
54 | * @var string |
||
55 | */ |
||
56 | protected $rawOutput; |
||
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | 104 | public function getBinaryPath(): string |
|
65 | |||
66 | /** |
||
67 | * path setter |
||
68 | * |
||
69 | * @param string $path the path to the system git binary |
||
70 | */ |
||
71 | 107 | public function setBinaryPath(string $path): self |
|
77 | |||
78 | /** |
||
79 | * @inheritdoc |
||
80 | */ |
||
81 | 5 | public function getBinaryVersion(): string |
|
94 | |||
95 | /** |
||
96 | * returns the output of the last executed command |
||
97 | * |
||
98 | * @return string |
||
99 | */ |
||
100 | public function getOutput(): string |
||
104 | |||
105 | /** |
||
106 | * returns the output of the last executed command as an array of lines |
||
107 | * |
||
108 | * @param bool $stripBlankLines remove the blank lines |
||
109 | * |
||
110 | * @return array |
||
111 | */ |
||
112 | public function getOutputLines(bool $stripBlankLines = false): array |
||
127 | |||
128 | /** |
||
129 | * Get RawOutput |
||
130 | * |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getRawOutput(): string |
||
137 | } |
||
138 |