Source of file TransformationRuleInterface.php
Size: 2,313 Bytes - Last Modified: 2013-07-17T08:22:21+02:00
/home/theseer/Downloads/Symfony/vendor/symfony/symfony/src/Symfony/Component/Intl/ResourceBundle/Transformer/Rule/TransformationRuleInterface.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\ResourceBundle\Transformer\Rule; use Symfony\Component\Intl\ResourceBundle\Transformer\CompilationContextInterface; use Symfony\Component\Intl\ResourceBundle\Transformer\StubbingContextInterface; /** * Contains instruction for compiling a resource bundle. * * @author Bernhard Schussek <bschussek@gmail.com> */ interface TransformationRuleInterface { /** * Returns the name of the compiled resource bundle. * * @return string The name of the bundle. */ public function getBundleName(); /** * Runs instructions to be executed before compiling the sources of the * resource bundle. * * @param CompilationContextInterface $context The contextual information of * the compilation. * * @return string[] The source directories/files of the bundle. */ public function beforeCompile(CompilationContextInterface $context); /** * Runs instructions to be executed after compiling the sources of the * resource bundle. * * @param CompilationContextInterface $context The contextual information of * the compilation. */ public function afterCompile(CompilationContextInterface $context); /** * Runs instructions to be executed before creating the stub version of the * resource bundle. * * @param StubbingContextInterface $context The contextual information of * the compilation. * * @return mixed The data to include in the stub version. */ public function beforeCreateStub(StubbingContextInterface $context); /** * Runs instructions to be executed after creating the stub version of the * resource bundle. * * @param StubbingContextInterface $context The contextual information of * the compilation. */ public function afterCreateStub(StubbingContextInterface $context); } |