forked from php-censor/php-censor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandExecutorInterface.php
More file actions
43 lines (38 loc) · 1.01 KB
/
Copy pathCommandExecutorInterface.php
File metadata and controls
43 lines (38 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace PHPCensor\Helper;
interface CommandExecutorInterface
{
/**
* Executes shell commands. Accepts multiple arguments the first
* is the template and everything else is inserted in. c.f. sprintf
*
* @param array $args
*
* @return bool Indicates success
*/
public function executeCommand($args = []);
/**
* Returns the output from the last command run.
*
* @return string
*/
public function getLastOutput();
/**
* Find a binary required by a plugin.
*
* @param array|string $binary
* @param string $priorityPath
* @param string $binaryPath
* @param array $binaryName
* @return string
*
* @throws \Exception when no binary has been found.
*/
public function findBinary($binary, $priorityPath = 'local', $binaryPath = '', $binaryName = []);
/**
* Set the buildPath property.
*
* @param string $path
*/
public function setBuildPath($path);
}