-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64dfe99
commit b7801e1
Showing
6 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
namespace Liuggio\Spawn\Process; | ||
|
||
use Liuggio\Spawn\CommandLine; | ||
|
||
interface ProcessInterface | ||
{ | ||
/** | ||
* @param CommandLine $commandLine | ||
* @param ProcessEnvironment $processEnvironment | ||
* @param int|float|null $timeout | ||
* @param string|null $cwd | ||
*/ | ||
public function __construct( | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
EmanueleMinotto
Author
Collaborator
|
||
CommandLine $commandLine, | ||
ProcessEnvironment $processEnvironment, | ||
$timeout = null, | ||
$cwd = null | ||
); | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getInputLine(); | ||
|
||
/** | ||
* @return CommandLine | ||
*/ | ||
public function getCommandLine(); | ||
|
||
/** | ||
* The current Id of the processes. | ||
* | ||
* @return int | ||
*/ | ||
public function getIncrementalNumber(); | ||
|
||
/** | ||
* The channel where the process is executed. | ||
* | ||
* @return Channel | ||
*/ | ||
public function getChannel(); | ||
} |
I think we can remove the __construct in the interface WDYT?