Sha256: b57f2024be1518b342f1527640b6dfaea3cc2b06d2c08b58386515716abdeac6
Contents?: true
Size: 1.04 KB
Versions: 10
Compression:
Stored size: 1.04 KB
Contents
<?php namespace MtHaml\Node; use MtHaml\NodeVisitor\NodeVisitorInterface; class ObjectRefId extends NodeAbstract { protected $object; protected $prefix; public function __construct($position, NodeAbstract $object, NodeAbstract $prefix = null) { parent::__construct($position); $this->object = $object; $this->prefix = $prefix; } public function getNodeName() { return 'object_ref_id'; } public function accept(NodeVisitorInterface $visitor) { if (false !== $visitor->enterObjectRefId($this)) { if (false !== $visitor->enterObjectRefObject($this)) { $this->object->accept($visitor); } $visitor->leaveObjectRefObject($this); if ($this->prefix) { if (false !== $visitor->enterObjectRefPrefix($this)) { $this->prefix->accept($visitor); } $visitor->leaveObjectRefPrefix($this); } } $visitor->leaveObjectRefId($this); } }
Version data entries
10 entries across 10 versions & 1 rubygems