From 6303cd30f9032c90b3cf8b3e36d6ac7a0d341166 Mon Sep 17 00:00:00 2001 From: chrico Date: Mon, 22 Mar 2021 13:22:35 +0100 Subject: [PATCH] BaseAsset // update docBlocks. --- src/BaseAsset.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/BaseAsset.php b/src/BaseAsset.php index 2435923..385bbb5 100644 --- a/src/BaseAsset.php +++ b/src/BaseAsset.php @@ -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 */ @@ -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[] */ protected $filters = []; @@ -91,7 +94,7 @@ abstract class BaseAsset implements Asset /** * Additional attributes to "link"- or "script"-tag. * - * @var array + * @var array */ protected $attributes = []; @@ -288,7 +291,7 @@ public function enqueue(): bool } /** - * @param bool|callable $enqueue + * @param bool|callable(): bool $enqueue * * @return static *