public function register(callable $matcher, AssemblerInterface $assembler): void
    {
        $this->assemblers[] = new AssemblerMatcher($matcher, $assembler);
    }
public function register(callable $matcher, AssemblerInterface $assembler): void
    {
        $this->assemblers[] = new AssemblerMatcher($matcher, $assembler);
    }
public function register ( callable $ matcher , AssemblerInterface $ assembler ) : void { $ this -> assemblers [ ] = new AssemblerMatcher ( $ matcher , $ assembler ) ; }
Registers an assembler instance to this factory.

@param callable           $matcher   A callback function accepting the criteria as only parameter and which must
return a boolean.
@param AssemblerInterface $assembler An instance of the Assembler that will be returned if the callback returns
true with the provided criteria.
Registers an assembler instance to this factory .