Pull merge.
[yaffs-website] / vendor / consolidation / robo / src / Task / Base / loadTasks.php
1 <?php
2 namespace Robo\Task\Base;
3
4 trait loadTasks
5 {
6     /**
7      * @param string|\Robo\Contract\CommandInterface $command
8      *
9      * @return Exec
10      */
11     protected function taskExec($command)
12     {
13         return $this->task(Exec::class, $command);
14     }
15
16     /**
17      * @return ExecStack
18      */
19     protected function taskExecStack()
20     {
21         return $this->task(ExecStack::class);
22     }
23
24     /**
25      * @return ParallelExec
26      */
27     protected function taskParallelExec()
28     {
29         return $this->task(ParallelExec::class);
30     }
31
32     /**
33      * @param $command
34      * @return SymfonyCommand
35      */
36     protected function taskSymfonyCommand($command)
37     {
38         return $this->task(SymfonyCommand::class, $command);
39     }
40
41     /**
42      * @return Watch
43      */
44     protected function taskWatch()
45     {
46         return $this->task(Watch::class, $this);
47     }
48 }