Class Asset

Class Asset

Asset implements AssetInterface

Methods summary

public __construct( string $path )

Initializes the asset.

public __toString( void ) : string

Get asset HTML markup.

public getPath( void ) : string

Get the path of the asset.

public getType( void ) : string

Get the type of the asset.

Constants summary

JAVASCRIPT : string

JavaScript Asset Type

'javascript'
CSS : string

CSS Asset Type

'css'
TRANSLATION : string

JavaScript Translation

'translation'

Properties summary

protected $path : string

Asset's relative path.


		
protected $type : string

Asset's type (defined by the file extension).