Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / data / Task / Development / GeneratedWrapper.tmpl
1 <?php
2 namespace Robo\Task\{delegateNamespace};
3
4 use Robo\Result;
5 use Robo\Task\StackBasedTask;
6 use {delegateNamespace}\{delegate};
7
8 /**
9  * Wrapper for {delegate} Component.
10  * Comands are executed in stack and can be stopped on first fail with `stopOnFail` option.
11  *
12  * ``` php
13  * <?php
14  * $this->task{wrapperClassName}()
15  *      ...
16  *      ->run();
17  *
18  * // one line
19  * ...
20  *
21  * ?>
22  * ```
23  *
24 {methodList}
25  */
26 class {wrapperClassName} extends StackBasedTask
27 {
28     protected $delegate;
29
30     public function __construct()
31     {
32         $this->delegate = new {delegate}();
33     }
34
35     protected function getDelegate()
36     {
37         return $this->delegate;
38     }{immediateMethods}{methodImplementations}
39 }