- md5
- dead382bb48a07c150deca976dab700d
- sha1
- 3c4d6c90b71eb1b9a9c00a42508d58e8a0cbebf7
- sha256
- 91a72b1103d0fce95627adbbc7a88f2d034d38993bb90038c84f517ae209e755
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
<?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\WebAsset;
\defined('JPATH_PLATFORM') or die;
/**
* Web Asset Item interface
*
* @since 4.0.0
*/
interface WebAssetItemInterface
{
/**
* Return Asset name
*
* @return string
*
* @since 4.0.0
*/
public function getName(): string;
/**
* Return Asset version
*
* @return string
*
* @since 4.0.0
*/
public function getVersion();
/**
* Return dependencies list
*
* @return array
*
* @since 4.0.0
*/
public function getDependencies(): array;
/**
* Set the desired weight for the Asset in Graph.
* Final weight will be calculated by AssetManager according to dependency Graph.
*
* @param float $weight The asset weight
*
* @return self
*
* @since 4.0.0
*/
public function setWeight(float $weight): self;
/**
* Return the weight of the Asset in Graph.
*
* @return float
*
* @since 4.0.0
*/
public function getWeight(): float;
/**
* Get CSS files
*
* @param boolean $resolvePath Whether need to search for a real paths
*
* @return array
*
* @since 4.0.0
*/
public function getStylesheetFiles($resolvePath = true): array;
/**
* Get JS files
*
* @param boolean $resolvePath Whether we need to search for a real paths
*
* @return array
*
* @since 4.0.0
*/
public function getScriptFiles($resolvePath = true): array;
}
No other release has this exact content. See every version of this file.