abstract class Generator (View source)

Properties

protected string $stub
protected string|null $namespace

Methods

__construct(Table $table, string|null $namespace = null, string|null $destination = null)

No description

void
loadStub(string $filename)

No description

void
defaultDestination(string $path)

No description

void
defaultNamespace(string $namespace)

No description

string
qualifyModel(string $class)

No description

void
write(string $filename, string $content, bool $force = false)

No description

string
read(string $filename)

No description

string
replace(array $search, array $replace)

No description

Details

protected __construct(Table $table, string|null $namespace = null, string|null $destination = null)

No description

Parameters

Table $table
string|null $namespace
string|null $destination

protected void loadStub(string $filename)

No description

Parameters

string $filename

Return Value

void

protected void defaultDestination(string $path)

No description

Parameters

string $path

Return Value

void

protected void defaultNamespace(string $namespace)

No description

Parameters

string $namespace

Return Value

void

protected string qualifyModel(string $class)

No description

Parameters

string $class

Return Value

string

protected void write(string $filename, string $content, bool $force = false)

No description

Parameters

string $filename
string $content
bool $force

Return Value

void

protected string read(string $filename)

No description

Parameters

string $filename

Return Value

string

protected string replace(array $search, array $replace)

No description

Parameters

array $search
array $replace

Return Value

string