Skip to content

Commit

Permalink
BaseAsset // update docBlocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Mar 22, 2021
1 parent c2a66d4 commit 6303cd3
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/BaseAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ abstract class BaseAsset implements Asset
protected $url = '';

/**
* full filePath to an Asset which can
* be used to auto-discover Version or load
* Asset content inline.
* Full filePath to an Asset which can
* be used to auto-discover version or
* load Asset content inline.
*
* @var string
*/
Expand All @@ -52,25 +52,28 @@ abstract class BaseAsset implements Asset
protected $dependencies = [];

/**
* Location where the Asset will be enqueued.
*
* @var int
*/
protected $location = self::FRONTEND;

/**
* Version can be auto-discovered via
* BaseAsset::enableAutodiscoverVersion().
* Version can be auto-discovered if null.
*
* @see BaseAsset::enableAutodiscoverVersion().
*
* @var null
*/
protected $version = null;

/**
* @var bool|callable
* @var bool|callable(): bool
*/
protected $enqueue = true;

/**
* @var OutputFilter\AssetOutputFilter[]
* @var callable[]|class-string<AssetOutputFilter>[]
*/
protected $filters = [];

Expand All @@ -91,7 +94,7 @@ abstract class BaseAsset implements Asset
/**
* Additional attributes to "link"- or "script"-tag.
*
* @var array
* @var array<string, scalar|bool>
*/
protected $attributes = [];

Expand Down Expand Up @@ -288,7 +291,7 @@ public function enqueue(): bool
}

/**
* @param bool|callable $enqueue
* @param bool|callable(): bool $enqueue
*
* @return static
*
Expand Down

0 comments on commit 6303cd3

Please sign in to comment.