PortableInfobox/includes/services/Parser/Nodes/NodeUnimplemented.php
2021-09-11 12:55:27 -06:00

16 lines
386 B
PHP

<?php
namespace PortableInfobox\Parser\Nodes;
class NodeUnimplemented extends Node {
public function getData() {
// @phan-suppress-previous-line PhanPluginNeverReturnMethod LSP violation.
throw new UnimplementedNodeException( $this->getType() );
}
}
// phpcs:ignore Generic.Files.OneObjectStructurePerFile.MultipleFound
class UnimplementedNodeException extends \Exception {
}