135f39e7a503871a267696cec5b592c2422edfe4
[yaffs-website] / vendor / consolidation / robo / src / Task / Docker / Base.php
1 <?php
2 namespace Robo\Task\Docker;
3
4 use Robo\Common\ExecOneCommand;
5 use Robo\Contract\CommandInterface;
6 use Robo\Contract\PrintedInterface;
7 use Robo\Task\BaseTask;
8
9 abstract class Base extends BaseTask implements CommandInterface, PrintedInterface
10 {
11     use ExecOneCommand;
12
13     /**
14      * @var string
15      */
16     protected $command = '';
17
18     /**
19      * {@inheritdoc}
20      */
21     public function run()
22     {
23         $command = $this->getCommand();
24         return $this->executeCommand($command);
25     }
26
27     abstract public function getCommand();
28 }