Sha256: c9a968419d5dd63a126f3a8bcc4b5423857aa38405061760173644cd9a5f94fb

Contents?: true

Size: 641 Bytes

Versions: 10

Compression:

Stored size: 641 Bytes

Contents

<?php

namespace MtHaml\Node;

use MtHaml\Nodevisitor\NodeVisitorInterface;

class Text extends EscapableAbstract
{
    private $content;

    public function __construct(array $position, $content)
    {
        parent::__construct($position);
        $this->content = $content;
    }

    public function getContent()
    {
        return $this->content;
    }

    public function getNodeName()
    {
        return 'text';
    }

    public function accept(NodeVisitorInterface $visitor)
    {
        $visitor->enterText($this);
        $visitor->leaveText($this);
    }

    public function isConst()
    {
        return true;
    }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.3.1 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.3.0 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.2.5 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.2.4 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.2.3 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.2.2 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.2.1 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.2.0 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php
guard-mthaml-0.1.0 vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php