/
AssetContainerInterface.php
53 lines (46 loc) · 1.21 KB
/
AssetContainerInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
* This file is part of the TomahawkPHP package.
*
* (c) Tom Ellis
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tomahawk\Asset;
interface AssetContainerInterface
{
/**
* Set name of container
*
* @param string $name
* @return $this
*/
public function setName($name);
/**
* Get name of container
*
* @return string
*/
public function getName();
/**
* Add a CSS file to the registered assets.
*
* @param string $name
* @param string $source
* @param array $dependencies
* @param array $attributes
* @return $this
*/
public function addCss($name, $source, $dependencies = array(), $attributes = array());
/**
* Add a JavaScript file to the registered assets.
*
* @param string $name
* @param string $source
* @param array $dependencies
* @param array $attributes
* @return $this
*/
public function addJs($name, $source, $dependencies = array(), $attributes = array());
}