* $var = new ezcTemplateBlockCommentAstNode( 'A comment with some text' ); * * The corresponding PHP code will be: * * /* A comment with some text *\/ * * * @package Template * @version //autogen// * @access private */ class ezcTemplateBlockCommentAstNode extends ezcTemplateStatementAstNode { /** * The text for the comment. * * @var string */ public $text; /** * Controls whether space separators are placed between the start/end marker * and the comment text. * * @var bool */ public $hasSeparator; /** * Constructs a new ezcTemplateBlockCommentAstNode * * @param string $text Text for comment. * @param bool $hasSeparator Use spacing separator or not? */ public function __construct( $text, $hasSeparator = true ) { parent::__construct(); if ( !is_string( $text ) ) { throw new ezcBaseValueException( "text", $text, 'string' ); } $this->text = $text; $this->hasSeparator = $hasSeparator; } } ?>