trait TaskAccessor (View source)

Traits

Properties

protected CollectionBuilder $builder from  BuilderAwareTrait

Methods

$this
setBuilder(CollectionBuilder $builder)

No description

getBuiltTask(string $fn, array $args)

Provides the collection builder with access to all of the protected 'task' methods available on this object.

task()

Alternative access to instantiate. Use:

Details

$this setBuilder(CollectionBuilder $builder)

No description

Parameters

CollectionBuilder $builder

Return Value

$this

See also

BuilderAwareInterface::setBuilder

protected CollectionBuilder collectionBuilder(ConsoleIO $io = null)

No description

Parameters

ConsoleIO $io

Return Value

CollectionBuilder

null|CollectionBuilder getBuiltTask(string $fn, array $args)

Provides the collection builder with access to all of the protected 'task' methods available on this object.

Parameters

string $fn
array $args

Return Value

null|CollectionBuilder

protected CollectionBuilder task()

Alternative access to instantiate. Use:

$this->task(Foo::class, $a, $b);

instead of:

$this->taskFoo($a, $b);

The later form is preferred.

Return Value

CollectionBuilder