PHP Class Pagekit\View\Asset\AssetFactory

Afficher le fichier Open project: pagekit/pagekit

Protected Properties

Свойство Type Description
$types array
$version string

Méthodes publiques

Méthode Description
create ( string $name, mixed $source, mixed $dependencies = [], mixed $options = [] ) : Pagekit\View\Asset\AssetInterface Create an asset instance.
getVersion ( ) Returns version number for cache breaking.
register ( string $name, string $class ) : self Registers an asset type.
setVersion ( $version ) Set a version number for cache breaking.

Method Details

create() public méthode

Create an asset instance.
public create ( string $name, mixed $source, mixed $dependencies = [], mixed $options = [] ) : Pagekit\View\Asset\AssetInterface
$name string
$source mixed
$dependencies mixed
$options mixed
Résultat Pagekit\View\Asset\AssetInterface

getVersion() public méthode

Returns version number for cache breaking.
public getVersion ( )

register() public méthode

Registers an asset type.
public register ( string $name, string $class ) : self
$name string
$class string
Résultat self

setVersion() public méthode

Set a version number for cache breaking.
public setVersion ( $version )
$version

Property Details

$types protected_oe property

protected array $types
Résultat array

$version protected_oe property

protected string $version
Résultat string