1: <?php
2:
3: class Syllable_Hyphen_Text implements Syllable_Hyphen_Interface {
4: private $text;
5:
6: public function __construct($text) {
7: $this->text = $text;
8: }
9:
10: public function joinText($parts) {
11: return join($this->text, $parts);
12: }
13:
14: public function joinHtmlDom($parts, DOMNode $node) {
15: $node->data = $this->joinText($parts);
16: }
17:
18: public function stripHtml($html) {
19: return str_replace($this->text, '', $html);
20: }
21: }