op = $op; $this->arg1 = $arg1; $this->arg2 = $arg2; } /** * @return string */ public function getOp(): string { return $this->op; } /** * @return TexArray */ public function getArg1(): TexArray { return $this->arg1; } /** * @return TexArray */ public function getArg2(): TexArray { return $this->arg2; } /** @inheritDoc */ public function inCurlies() { return $this->render(); } /** @inheritDoc */ public function render() { return '{' . $this->arg1->render() . ' ' . $this->op . ' ' . $this->arg2->render() . '}'; } /** @inheritDoc */ public function renderMML( $arguments = [], &$state = [] ) { return $this->parseToMML( $this->op, $arguments, null ); } /** @inheritDoc */ public function extractIdentifiers( $args = null ) { if ( $args == null ) { $args = [ $this->arg1, $this->arg2 ]; } return parent::extractIdentifiers( $args ); } }