From 80e2d7cc37920dc68e57d547f86e6449adfc702d Mon Sep 17 00:00:00 2001 From: MrCrankHank Date: Sat, 24 Sep 2016 14:06:33 +0200 Subject: [PATCH] Update interface --- src/Interfaces/ConsoleAccessInterface.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Interfaces/ConsoleAccessInterface.php b/src/Interfaces/ConsoleAccessInterface.php index 39f4019..abad2d7 100755 --- a/src/Interfaces/ConsoleAccessInterface.php +++ b/src/Interfaces/ConsoleAccessInterface.php @@ -8,19 +8,25 @@ interface ConsoleAccessInterface { public function __construct(AdapterInterface $adapter); + public function sudo($sudo = '/usr/bin/sudo'); + + public function bin($bin, $escape = true); + + public function param($param, $hidden = false, $escape = true); + + public function exec(Closure $live = null); + public function getOutput(); public function getExitStatus(); public function getBin(); - public function getParams(); - - public function exec(Closure $live = null); + public function setPreExec(Closure $function); - public function bin($bin); + public function setPostExec(Closure $function); - public function param($param, $escape = true); + public function getParams(); public function getStart(); @@ -28,9 +34,5 @@ public function getEnd(); public function getDuration(); - public function sudo($sudo = '/usr/bin/sudo'); - - public function setPreExec(Closure $function); - - public function setPostExec(Closure $function); + public function getCommand(); }