interface GeneratorInterface

Generator interface.

Methods

void
run(bool $force = false)

Run the generator logic and save it to a file.

static void
make(Table $class, string|null $namespace = null, string|null $destination = null)

Create a instance.

Details

at line 17
void run(bool $force = false)

Run the generator logic and save it to a file.

Parameters

bool $force

Whether to force the generation of the generator file or not.

Return Value

void

at line 27
static void make(Table $class, string|null $namespace = null, string|null $destination = null)

Create a instance.

Parameters

Table $class

The name of the class for replacing with stub file

string|null $namespace

The namespace to be applied to the class

string|null $destination

The path to the dist folder

Return Value

void