| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace MediaWiki\Extension\Math\WikiTexVC\Nodes; |
| 6 | |
| 7 | class Fun2sq extends Fun2 { |
| 8 | |
| 9 | /** @inheritDoc */ |
| 10 | public function inCurlies() { |
| 11 | return $this->render(); |
| 12 | } |
| 13 | |
| 14 | /** @inheritDoc */ |
| 15 | public function render() { |
| 16 | return '{' . $this->fname . '[' . $this->arg1->render() . ']' . $this->arg2->inCurlies() . '}'; |
| 17 | } |
| 18 | } |