WorkerInterface.php 627B

123456789101112131415161718192021222324252627282930
  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\Factory\Worker;
  11. use Assetic\Asset\AssetInterface;
  12. /**
  13. * Assets are passed through factory workers before leaving the factory.
  14. *
  15. * @author Kris Wallsmith <kris.wallsmith@gmail.com>
  16. */
  17. interface WorkerInterface
  18. {
  19. /**
  20. * Processes an asset.
  21. *
  22. * @param AssetInterface $asset An asset
  23. */
  24. function process(AssetInterface $asset);
  25. }