* $var = new ezcTemplateVariableAstNode( 'some_var' ); * * The corresponding PHP code will be: * * $some_var * * * @package Template * @version //autogen// * @access private */ class ezcTemplateVariableAstNode extends ezcTemplateAstNode { /** * The name of the variable. * * @var string */ public $name; /** * Constructs a new variable. * * @param string $name The name of the variable. */ public function __construct( $name ) { parent::__construct(); if ( !is_string( $name ) ) { throw new ezcBaseValueException( "name", $name, 'string' ); } $this->name = $name; $this->typeHint = self::TYPE_VALUE; } } ?>