| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace MediaWiki\Extension\Math\WikiTexVC\Nodes; |
| 6 | |
| 7 | class Fun1nb extends Fun1 { |
| 8 | |
| 9 | /** @inheritDoc */ |
| 10 | public function inCurlies() { |
| 11 | return '{' . $this->render() . '}'; |
| 12 | } |
| 13 | |
| 14 | /** @inheritDoc */ |
| 15 | public function render() { |
| 16 | return $this->fname . ' ' . $this->arg->inCurlies() . ' '; |
| 17 | } |
| 18 | |
| 19 | /** @inheritDoc */ |
| 20 | public function renderMML( $arguments = [], &$state = [] ): string { |
| 21 | return $this->parseToMML( $this->fname, $arguments, $state ); |
| 22 | } |
| 23 | } |