| 1 |
<?php |
| 2 |
|
| 3 |
namespace Wikimedia\RemexHtml\TreeBuilder; |
| 4 |
|
| 5 |
use Wikimedia\RemexHtml\Tokenizer\Attributes; |
| 6 |
|
| 7 |
/** |
| 8 |
* A TreeHandler which does nothing |
| 9 |
*/ |
| 10 |
class NullTreeHandler implements TreeHandler { |
| 11 |
/** |
| 12 |
* @inheritDoc |
| 13 |
*/ |
| 14 |
public function startDocument( $fns, $fn ) { |
| 15 |
} |
| 16 |
|
| 17 |
/** |
| 18 |
* @inheritDoc |
| 19 |
*/ |
| 20 |
public function endDocument( $pos ) { |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* @inheritDoc |
| 25 |
*/ |
| 26 |
public function characters( |
| 27 |
$parent, $refNode, $text, $start, $length, $sourceStart, $sourceLength |
| 28 |
) { |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* @inheritDoc |
| 33 |
*/ |
| 34 |
public function insertElement( $parent, $refNode, Element $element, $void, |
| 35 |
$sourceStart, $sourceLength |
| 36 |
) { |
| 37 |
} |
| 38 |
|
| 39 |
/** |
| 40 |
* @inheritDoc |
| 41 |
*/ |
| 42 |
public function endTag( Element $element, $sourceStart, $sourceLength ) { |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* @inheritDoc |
| 47 |
*/ |
| 48 |
public function doctype( $name, $public, $system, $quirks, $sourceStart, $sourceLength ) { |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* @inheritDoc |
| 53 |
*/ |
| 54 |
public function comment( $parent, $refNode, $text, $sourceStart, $sourceLength ) { |
| 55 |
} |
| 56 |
|
| 57 |
/** |
| 58 |
* @inheritDoc |
| 59 |
*/ |
| 60 |
public function error( $text, $pos ) { |
| 61 |
} |
| 62 |
|
| 63 |
/** |
| 64 |
* @inheritDoc |
| 65 |
*/ |
| 66 |
public function mergeAttributes( Element $element, Attributes $attrs, $sourceStart ) { |
| 67 |
} |
| 68 |
|
| 69 |
/** |
| 70 |
* @inheritDoc |
| 71 |
*/ |
| 72 |
public function removeNode( Element $element, $sourceStart ) { |
| 73 |
} |
| 74 |
|
| 75 |
/** |
| 76 |
* @inheritDoc |
| 77 |
*/ |
| 78 |
public function reparentChildren( Element $element, Element $newParent, $sourceStart ) { |
| 79 |
} |
| 80 |
} |