File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \CloudPatches \Patch ;
9
9
10
+ use Magento \CloudPatches \Shell \Command \DriverInterface ;
11
+
10
12
/**
11
13
* Patch command selector
12
14
*/
13
15
class PatchCommand implements PatchCommandInterface
14
16
{
15
17
/**
16
- * @var PatchCommandInterface []
18
+ * @var DriverInterface []
17
19
*/
18
20
private $ commands ;
19
21
20
22
/**
21
- * @var PatchCommandInterface
23
+ * @var DriverInterface
22
24
*/
23
25
private $ command ;
24
26
25
27
/**
26
- * @param PatchCommandInterface [] $commands
28
+ * @param DriverInterface [] $commands
27
29
*/
28
30
public function __construct (
29
31
array $ commands
@@ -66,10 +68,10 @@ public function revertCheck(string $patch)
66
68
/**
67
69
* Return first available command
68
70
*
69
- * @return PatchCommandInterface
71
+ * @return DriverInterface
70
72
* @throws PatchCommandNotFound
71
73
*/
72
- private function getCommand (): PatchCommandInterface
74
+ private function getCommand (): DriverInterface
73
75
{
74
76
if ($ this ->command === null ) {
75
77
foreach ($ this ->commands as $ command ) {
You can’t perform that action at this time.
0 commit comments