October\Rain\Assetic\Asset\AssetCollection

Implements
  • IteratorAggregate
  • October\Rain\Assetic\Asset\AssetCollectionInterface
  • Traversable
  • October\Rain\Assetic\Asset\AssetInterface

Protected Properties

protected mixed $assets

protected mixed $filters

protected mixed $sourceRoot

protected mixed $targetPath

protected mixed $content

protected mixed $clones

protected mixed $vars

protected mixed $values


Public Methods

public __clone()

public __clone(): void

public __construct()

public __construct(
    array $assets = [],
    array $filters = [],
    string $sourceRoot = null,
    array $vars = []
): void

public add()

public add($asset): void

public all()

public all(): void

public clearFilters()

public clearFilters(): void

public dump()

public dump($additionalFilter = null): void

public ensureFilter()

public ensureFilter($filter): void

public getContent()

public getContent(): void

public getFilters()

public getFilters(): void

public getIterator()

public getIterator(): Traversable 

getIterator returns an iterator for looping recursively over unique leaves.

public getLastModified()

public getLastModified(): integer|null 

getLastModified returns the highest last-modified value of all assets in the current collection.

public getSourceDirectory()

public getSourceDirectory(): void

getSourceDirectory returns the first available source directory, useful when extracting imports and a singular collection is returned

public getSourcePath()

public getSourcePath(): void

public getSourceRoot()

public getSourceRoot(): void

public getTargetPath()

public getTargetPath(): void

public getValues()

public getValues(): void

public getVars()

public getVars(): void

public load()

public load($additionalFilter = null): void

public removeLeaf()

public removeLeaf($needle, $graceful = false): void

public replaceLeaf()

public replaceLeaf($needle, $replacement, $graceful = false): void

public setContent()

public setContent($content): void

public setTargetPath()

public setTargetPath($targetPath): void

public setValues()

public setValues($values): void