1 | <?php |
||
7 | trait TaskAccessor |
||
8 | { |
||
9 | use BuilderAwareTrait; |
||
10 | |||
11 | /** |
||
12 | * Provides the collection builder with access to all of the |
||
13 | * protected 'task' methods available on this object. |
||
14 | * |
||
15 | * @param string $fn |
||
16 | * @param array $args |
||
17 | * |
||
18 | * @return null|\Robo\Collection\CollectionBuilder |
||
19 | */ |
||
20 | public function getBuiltTask($fn, $args) |
||
26 | |||
27 | /** |
||
28 | * Alternative access to instantiate. Use: |
||
29 | * |
||
30 | * $this->task(Foo::class, $a, $b); |
||
31 | * |
||
32 | * instead of: |
||
33 | * |
||
34 | * $this->taskFoo($a, $b); |
||
35 | * |
||
36 | * The later form is preferred. |
||
37 | * |
||
38 | * @return \Robo\Collection\CollectionBuilder |
||
39 | */ |
||
40 | protected function task() |
||
48 | } |
||
49 |