Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / robo / src / Task / Docker / Start.php
1 <?php
2 namespace Robo\Task\Docker;
3
4 /**
5  * Starts Docker container
6  *
7  * ```php
8  * <?php
9  * $this->taskDockerStart($cidOrResult)
10  *      ->run();
11  * ?>
12  * ```
13  */
14 class Start extends Base
15 {
16     /**
17      * @var string
18      */
19     protected $command = "docker start";
20
21     /**
22      * @var null|string
23      */
24     protected $cid;
25
26     /**
27      * @param string|\Robo\Task\Docker\Result $cidOrResult
28      */
29     public function __construct($cidOrResult)
30     {
31         $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult;
32     }
33
34     /**
35      * {@inheritdoc}
36      */
37     public function getCommand()
38     {
39         return $this->command . ' ' . $this->arguments . ' ' . $this->cid;
40     }
41 }