PortableInfobox/includes/services/Parser/Nodes/NodeUnimplemented.php
2022-03-11 13:35:51 -07:00

19 lines
402 B
PHP

<?php
namespace PortableInfobox\Parser\Nodes;
use Exception;
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 {
}