<?php

/**
 * The API provided by a Builder that can be re-initialized.
 *
 * @package StellarWP\Learndash\lucatume\DI52\Builders
 */
namespace StellarWP\Learndash\lucatume\DI52\Builders;

/**
 * Interface ReinitializableBuilderInterface
 *
 * @package \StellarWP\Learndash\lucatume\DI52\Builders
 */
interface ReinitializableBuilderInterface
{
    /**
     * Reinitialize the builder setting the after build methods and build args.
     *
     * @param array<string>|null $afterBuildMethods A set of methods to call on the object after it's built.
     * @param mixed              ...$buildArgs      A set of build arguments that will be passed to the constructor.
     *
     * @return void This method does not return any value.
     */
    public function reinit(array $afterBuildMethods = null, ...$buildArgs);
}