Documentation

FileContent extends BaseModifier
in package
Uses CommandInteraction

Table of Contents

$fileContent  : string
$filePath  : string
$in  : InputInterface
$out  : OutputInterface
$stepName  : string
$upgrade  : Upgrade
$version  : BaseVersion
$abortedRequiringUserAction  : bool
$automatedChange  : Closure|null
$automatedChangeCmd  : string|null
$isOptional  : bool
$isOptionalIfNotFound  : bool
$searchedFile  : string
$shouldChange  : bool
__construct()  : mixed
abortRequiringUserAction()  : mixed
automateChange()  : void
automateChangeCmd()  : void
confirmAutomatedChange()  : bool
demandChange()  : void
find()  : void
optional()  : mixed
optionalIfNotFound()  : mixed
runCommand()  : bool
shouldChangeIfIncludes()  : void
shouldChangeIfNotIncludes()  : void
shouldChangeIfPattern()  : void
shouldSkipStep()  : mixed
configure()  : mixed

Properties

$abortedRequiringUserAction

private bool $abortedRequiringUserAction = false

$automatedChange

private Closure|null $automatedChange = null

$automatedChangeCmd

private string|null $automatedChangeCmd = null

$isOptionalIfNotFound

private bool $isOptionalIfNotFound = false

Methods

abortRequiringUserAction()

public abortRequiringUserAction() : mixed
Return values
mixed —

automateChange()

public automateChange(Closure $change) : void
Parameters
$change : Closure
Return values
void —

automateChangeCmd()

public automateChangeCmd(string $command) : void
Parameters
$command : string
Return values
void —

confirmAutomatedChange()

public confirmAutomatedChange() : bool
Return values
bool —

demandChange()

public demandChange(string|array<string|int, mixed> $explanation) : void
Parameters
$explanation : string|array<string|int, mixed>
Return values
void —

find()

public find(string $file[, string|null $folder = null ]) : void
Parameters
$file : string
$folder : string|null = null
Return values
void —

optional()

public optional() : mixed
Return values
mixed —

optionalIfNotFound()

public optionalIfNotFound() : mixed
Return values
mixed —

runCommand()

public runCommand(string $command) : bool
Parameters
$command : string
Return values
bool —

shouldChangeIfIncludes()

public shouldChangeIfIncludes(string $search) : void
Parameters
$search : string
Return values
void —

shouldChangeIfNotIncludes()

public shouldChangeIfNotIncludes(string $search) : void
Parameters
$search : string
Return values
void —

shouldChangeIfPattern()

public shouldChangeIfPattern(string $pattern) : void
Parameters
$pattern : string
Return values
void —

shouldSkipStep()

public shouldSkipStep() : mixed
Return values
mixed —

configure()

protected configure() : mixed
Return values
mixed —

Search results