type = $type; $this->value = $value; } public function dump() { if ( $this->value instanceof MessageValue ) { $contents = $this->value->dump(); } else { $contents = htmlspecialchars( $this->value ); } return "<{$this->type}>" . $contents . "type}>"; } }