- md5
- 550f973849f36389f82abb5326bb8522
- sha1
- 99ac0c8011459dc6deac25969dde108281e0a483
- sha256
- 5ff93050fa2ea5a3c8232410bb5f1514bcd82009ed4eb63dd3bb183da215f30e
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;
}
The same content is in 5 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha11. See them all, or every version of this file.