FilterInterface.php

Namespace

Assetic\Filter

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Filter/FilterInterface.php
View source
<?php

/*
 * This file is part of the Assetic package, an OpenSky project.
 *
 * (c) 2010-2012 OpenSky Project Inc
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Assetic\Filter;

use Assetic\Asset\AssetInterface;

/**
 * A filter manipulates an asset at load and dump.
 *
 * @author Kris Wallsmith <kris.wallsmith@gmail.com>
 */
interface FilterInterface {

  /**
   * Filters an asset after it has been loaded.
   *
   * @param AssetInterface $asset An asset
   */
  public function filterLoad(AssetInterface $asset);

  /**
   * Filters an asset just before it's dumped.
   *
   * @param AssetInterface $asset An asset
   */
  public function filterDump(AssetInterface $asset);

}

Interfaces

Namesort descending Description
FilterInterface A filter manipulates an asset at load and dump.