1<?php
2
3/*
4 * This file is part of the Assetic package, an OpenSky project.
5 *
6 * (c) 2010-2014 OpenSky Project Inc
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Assetic\Filter;
13
14use Assetic\Asset\AssetInterface;
15use Assetic\Factory\AssetFactory;
16
17/**
18 * A filter that knows how to extract dependencies.
19 *
20 * @author Kris Wallsmith <kris.wallsmith@gmail.com>
21 */
22interface DependencyExtractorInterface extends FilterInterface
23{
24    /**
25     * Returns child assets.
26     *
27     * @param AssetFactory $factory  The asset factory
28     * @param string       $content  The asset content
29     * @param string       $loadPath An optional load path
30     *
31     * @return AssetInterface[] Child assets
32     */
33    public function getChildren(AssetFactory $factory, $content, $loadPath = null);
34}
35