MetaFox

FileTranslateTrait

Trait PackageCommandTrait.

Tags
mixin

Command

Table of Contents

Properties

$transforms  : array<string|int, mixed>

Methods

translate()  : int
Execute the console command.
translateSavedToPath()  : string

Properties

Methods

translate()

Execute the console command.

public translate(string $saveTo, string $stub, array<string|int, mixed> $replacements[, bool $overwriteFile = false ][, bool $silent = true ]) : int
Parameters
$saveTo : string
$stub : string
$replacements : array<string|int, mixed>
$overwriteFile : bool = false
$silent : bool = true
Return values
int

translateSavedToPath()

public translateSavedToPath(string $path, array<string|int, mixed> $replacements) : string
Parameters
$path : string
$replacements : array<string|int, mixed>
Return values
string

        
On this page

Search results