W3cubDocs

/Symfony 4.1

FactoryTrait

trait FactoryTrait

Methods

$this factory(string|array $factory)

Sets a factory.

Details

final $this factory(string|array $factory)

Sets a factory.

Parameters

string|array $factory A PHP callable reference

Return Value

$this