$assemblers
$assemblers : array<mixed,mixed>
Attempts to retrieve an Assembler for the provided criteria.
register(callable $matcher, \phpDocumentor\Descriptor\Builder\AssemblerInterface $assembler) : void
Registers an assembler instance to this factory.
callable | $matcher | A callback function accepting the criteria as only parameter and which must return a boolean. |
\phpDocumentor\Descriptor\Builder\AssemblerInterface | $assembler | An instance of the Assembler that will be returned if the callback returns true with the provided criteria. |
registerFallback(callable $matcher, \phpDocumentor\Descriptor\Builder\AssemblerInterface $assembler) : void
Registers an assembler instance to this factory that is to be executed after all other assemblers have been checked.
callable | $matcher | A callback function accepting the criteria as only parameter and which must return a boolean. |
\phpDocumentor\Descriptor\Builder\AssemblerInterface | $assembler | An instance of the Assembler that will be returned if the callback returns true with the provided criteria. |
get(mixed $criteria) : \phpDocumentor\Descriptor\Builder\AssemblerInterface|null
Retrieves a matching Assembler based on the provided criteria or null if none was found.
mixed | $criteria |
Loading…