FilterInterface.php 789B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of the Assetic package, an OpenSky project.
  4. *
  5. * (c) 2010-2011 OpenSky Project Inc
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Assetic\Filter;
  11. use Assetic\Asset\AssetInterface;
  12. /**
  13. * A filter manipulates an asset at load and dump.
  14. *
  15. * @author Kris Wallsmith <kris.wallsmith@gmail.com>
  16. */
  17. interface FilterInterface
  18. {
  19. /**
  20. * Filters an asset after it has been loaded.
  21. *
  22. * @param AssetInterface $asset An asset
  23. */
  24. function filterLoad(AssetInterface $asset);
  25. /**
  26. * Filters an asset just before it's dumped.
  27. *
  28. * @param AssetInterface $asset An asset
  29. */
  30. function filterDump(AssetInterface $asset);
  31. }