1 | <?php |
||
28 | abstract class AbstractCaller implements CallerInterface |
||
29 | { |
||
30 | /** |
||
31 | * Git binary path |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $binaryPath; |
||
36 | |||
37 | /** |
||
38 | * Git binary version |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $binaryVersion; |
||
43 | |||
44 | /** |
||
45 | * the output lines of the command |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $outputLines = []; |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | 103 | public function getBinaryPath(): string |
|
58 | |||
59 | /** |
||
60 | * path setter |
||
61 | * |
||
62 | * @param string $path the path to the system git binary |
||
63 | */ |
||
64 | 106 | public function setBinaryPath(string $path): self |
|
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | 5 | public function getBinaryVersion(): string |
|
87 | |||
88 | /** |
||
89 | * returns the output of the last executed command |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getOutput(): string |
||
97 | |||
98 | /** |
||
99 | * returns the output of the last executed command as an array of lines |
||
100 | * |
||
101 | * @param bool $stripBlankLines remove the blank lines |
||
102 | * |
||
103 | * @return array |
||
104 | */ |
||
105 | public function getOutputLines(bool $stripBlankLines = false): array |
||
120 | } |
||
121 |