Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
6 / 6
CRAP
100.00% covered (success)
100.00%
1 / 1
ChemFun2u
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
6 / 6
6
100.00% covered (success)
100.00%
1 / 1
 getFname
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 __construct
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
 getLeft
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getRight
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
 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 ChemFun2u extends TexNode {
8
9    /** @var string */
10    private $fname;
11    /** @var TexNode */
12    private $left;
13    /** @var TexNode */
14    private $right;
15
16    /**
17     * @return string
18     */
19    public function getFname(): string {
20        return $this->fname;
21    }
22
23    public function __construct( string $fname, TexNode $left, TexNode $right ) {
24        parent::__construct( $fname, $left, $right );
25        $this->fname = $fname;
26        $this->left = $left;
27        $this->right = $right;
28    }
29
30    /**
31     * @return TexNode
32     */
33    public function getLeft(): TexNode {
34        return $this->left;
35    }
36
37    /**
38     * @return TexNode
39     */
40    public function getRight(): TexNode {
41        return $this->right;
42    }
43
44    public function render() {
45        return $this->fname . $this->left->inCurlies() . '_' . $this->right->inCurlies();
46    }
47
48    public function extractIdentifiers( $args = null ) {
49        return [];
50    }
51
52}