@@ 15-29 (lines=15) @@ | ||
12 | * ?> |
|
13 | * ``` |
|
14 | */ |
|
15 | class Start extends Base |
|
16 | { |
|
17 | /** |
|
18 | * @var string |
|
19 | */ |
|
20 | protected $command = "docker start"; |
|
21 | ||
22 | /** |
|
23 | * @var null|string |
|
24 | */ |
|
25 | protected $cid; |
|
26 | ||
27 | /** |
|
28 | * @param string|\Robo\Task\Docker\Result $cidOrResult |
|
29 | */ |
|
30 | public function __construct($cidOrResult) |
|
31 | { |
|
32 | $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult; |
@@ 15-29 (lines=15) @@ | ||
12 | * ?> |
|
13 | * ``` |
|
14 | */ |
|
15 | class Stop extends Base |
|
16 | { |
|
17 | /** |
|
18 | * @var string |
|
19 | */ |
|
20 | protected $command = "docker stop"; |
|
21 | ||
22 | /** |
|
23 | * @var null|string |
|
24 | */ |
|
25 | protected $cid; |
|
26 | ||
27 | /** |
|
28 | * @param string|\Robo\Task\Docker\Result $cidOrResult |
|
29 | */ |
|
30 | public function __construct($cidOrResult) |
|
31 | { |
|
32 | $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult; |