<?php/* * This file is part of Twig. * * (c) 2010 Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. *//** * @deprecated since version 1.5 */classTwig_Extensions_Grammar_SwitchextendsTwig_Extensions_Grammar{publicfunction__toString(){returnsprintf('<%s:switch>',$this->name);}publicfunctionparse(Twig_Token$token){$this->parser->getStream()->expect(Twig_Token::NAME_TYPE,$this->name);returnnewTwig_Node_Expression_Constant(true,$token->getLine());}}