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; 15 16/** 17 * A filter manipulates an asset at load and dump. 18 * 19 * @author Kris Wallsmith <kris.wallsmith@gmail.com> 20 */ 21interface FilterInterface 22{ 23 /** 24 * Filters an asset after it has been loaded. 25 * 26 * @param AssetInterface $asset An asset 27 */ 28 public function filterLoad(AssetInterface $asset); 29 30 /** 31 * Filters an asset just before it's dumped. 32 * 33 * @param AssetInterface $asset An asset 34 */ 35 public function filterDump(AssetInterface $asset); 36} 37