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\Factory\Loader; 13 14use Assetic\Factory\Resource\ResourceInterface; 15 16/** 17 * Loads formulae. 18 * 19 * @author Kris Wallsmith <kris.wallsmith@gmail.com> 20 */ 21interface FormulaLoaderInterface 22{ 23 /** 24 * Loads formulae from a resource. 25 * 26 * Formulae should be loaded the same regardless of the current debug 27 * mode. Debug considerations should happen downstream. 28 * 29 * @param ResourceInterface $resource A resource 30 * 31 * @return array An array of formulae 32 */ 33 public function load(ResourceInterface $resource); 34} 35