left = $left; $this->right = $right; } /** * @return TexNode */ public function getLeft(): TexNode { return $this->left; } /** * @return TexNode */ public function getRight(): TexNode { return $this->right; } /** @inheritDoc */ public function render() { return $this->left->render() . $this->right->render(); } /** @inheritDoc */ public function renderMML( $arguments = [], &$state = [] ) { $mmlMrow = new MMLmrow(); $mtextLeft = new MMLmtext( "", [ "mathcolor" => "red" ] ); $mtextRight = new MMLmtext(); // If right has empty literal content is resolved as dash $right = $this->getRight()->getArgs()[0] == "" ? "-" : $this->getRight()->renderMML( [], $state ); return $mmlMrow->encapsulateRaw( $mmlMrow->encapsulateRaw( $mtextLeft->encapsulateRaw( $this->getLeft()->renderMML( [], $state ) ) . $mtextRight->encapsulateRaw( $right ) ) ); } /** @inheritDoc */ public function extractIdentifiers( $args = null ) { return []; } }