FileTranslateTrait
Trait PackageCommandTrait.
Tags
Table of Contents
Properties
- $transforms : array<string|int, mixed>
Methods
- translate() : int
- Execute the console command.
- translateSavedToPath() : string
Properties
$transforms
public
array<string|int, mixed>
$transforms
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
inttranslateSavedToPath()
public
translateSavedToPath(string $path, array<string|int, mixed> $replacements) : string
Parameters
- $path : string
- $replacements : array<string|int, mixed>