Assets
in package
Table of Contents
- $assets : array<string|int, mixed>
- $compiler : Compiler
- __construct() : mixed
- Constructor
- add() : Assets
- Add an asset
- empty() : Assets
- Remove all assets
- get() : array<string|int, mixed>
- Get all assets
- nameExists() : bool
- Is an asset named $name is defined
- write() : mixed
- Write all assets in a folder
Properties
$assets
protected
array<string|int, mixed>
$assets
= []
$compiler
protected
Compiler
$compiler
Methods
__construct()
Constructor
public
__construct(Compiler $compiler) : mixed
Parameters
- $compiler : Compiler
Return values
mixed —add()
Add an asset
public
add(Asset $asset) : Assets
Parameters
- $asset : Asset
Return values
Assets —empty()
Remove all assets
public
empty() : Assets
Return values
Assets —get()
Get all assets
public
get() : array<string|int, mixed>
Return values
array<string|int, mixed> —nameExists()
Is an asset named $name is defined
public
nameExists(string $name) : bool
Parameters
- $name : string
Return values
bool —write()
Write all assets in a folder
public
write(string $folder) : mixed
Parameters
- $folder : string