class RevisionCompiler implements CompilerInterface

Properties

protected string[] $files
protected callable[] $strings
protected bool $watch

Methods

__construct(string $path, string $filename, bool $watch = false)

No description

setFilename(string $filename)

No description

addFile(string $file)

No description

addString(callable $callback)

No description

string
getFile()

No description

mixed
getCacheDifferentiator()

No description

string
format(string $string)

No description

string
compile()

No description

string
formatFile(string $file)

No description

string
getRevisionFile()

No description

string|null
getRevision()

No description

int
putRevision(string $revision)

No description

flush()

No description

Details

__construct(string $path, string $filename, bool $watch = false)

Parameters

string $path
string $filename
bool $watch

setFilename(string $filename)

Parameters

string $filename

addFile(string $file)

Parameters

string $file

addString(callable $callback)

Parameters

callable $callback

string getFile()

Return Value

string

protected mixed getCacheDifferentiator()

Return Value

mixed

protected string format(string $string)

Parameters

string $string

Return Value

string

string compile()

Return Value

string

protected string formatFile(string $file)

Parameters

string $file

Return Value

string

protected string getRevisionFile()

Return Value

string

protected string|null getRevision()

Return Value

string|null

protected int putRevision(string $revision)

Parameters

string $revision

Return Value

int

flush()