Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
66.67% |
2 / 3 |
|
66.67% |
2 / 3 |
CRAP | |
0.00% |
0 / 1 |
| Fun1nb | |
66.67% |
2 / 3 |
|
66.67% |
2 / 3 |
3.33 | |
0.00% |
0 / 1 |
| inCurlies | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| render | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| toMMLTree | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 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 toMMLTree( array $arguments = [], array &$state = [] ) { |
| 21 | return $this->parseToMML( $this->fname, $arguments, $state ); |
| 22 | } |
| 23 | } |