Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
7 / 7
CRAP
100.00% covered (success)
100.00%
1 / 1
Big
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
7 / 7
7
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
 getFname
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getArg
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 inCurlies
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 render
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 renderMML
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 extractIdentifiers
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare( strict_types = 1 );
4
5namespace MediaWiki\Extension\Math\WikiTexVC\Nodes;
6
7class Big extends TexNode {
8
9    /** @var string */
10    private $fname;
11    /** @var string */
12    private $arg;
13
14    public function __construct( string $fname, string $arg ) {
15        parent::__construct( $fname, $arg );
16        $this->fname = $fname;
17        $this->arg = $arg;
18    }
19
20    /**
21     * @return string
22     */
23    public function getFname(): string {
24        return $this->fname;
25    }
26
27    /**
28     * @return string
29     */
30    public function getArg(): string {
31        return $this->arg;
32    }
33
34    public function inCurlies() {
35        return $this->render();
36    }
37
38    public function render() {
39        return '{' . $this->fname . ' ' . $this->arg . '}';
40    }
41
42    public function renderMML( $arguments = [], $state = [] ): string {
43        return $this->parseToMML( $this->fname, $arguments, null );
44    }
45
46    public function extractIdentifiers( $args = null ) {
47        return [];
48    }
49
50}