PortableInfobox/includes/services/Parser/Nodes/NodeUnimplemented.php

19 lines
402 B
PHP
Raw Normal View History

<?php
2022-03-11 20:35:51 +00:00
namespace PortableInfobox\Parser\Nodes;
2022-03-11 20:35:51 +00:00
use Exception;
class NodeUnimplemented extends Node {
public function getData() {
2021-09-11 18:55:27 +00:00
// @phan-suppress-previous-line PhanPluginNeverReturnMethod LSP violation.
2015-05-06 11:16:55 +00:00
throw new UnimplementedNodeException( $this->getType() );
}
}
2018-10-02 07:41:19 +00:00
// phpcs:ignore Generic.Files.OneObjectStructurePerFile.MultipleFound
2022-03-11 20:35:51 +00:00
class UnimplementedNodeException extends Exception {
2018-08-16 09:25:53 +00:00
}