Page MenuHomeWickedGov Phorge

Fun2.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

Fun2.php

<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Math\WikiTexVC\Nodes;
class Fun2 extends TexNode {
/** @var string */
protected $fname;
/** @var TexNode */
protected $arg1;
/** @var TexNode */
protected $arg2;
public function __construct( string $fname, TexNode $arg1, TexNode $arg2 ) {
parent::__construct( $fname, $arg1, $arg2 );
$this->fname = $fname;
$this->arg1 = $arg1;
$this->arg2 = $arg2;
}
/**
* @return string
*/
public function getFname(): string {
return $this->fname;
}
/**
* @return TexNode
*/
public function getArg1(): TexNode {
return $this->arg1;
}
/**
* @return TexNode
*/
public function getArg2(): TexNode {
return $this->arg2;
}
/** @inheritDoc */
public function inCurlies() {
return $this->render();
}
/** @inheritDoc */
public function render() {
return '{' . $this->fname . ' ' . $this->arg1->inCurlies() . $this->arg2->inCurlies() . '}';
}
/** @inheritDoc */
public function renderMML( $arguments = [], &$state = [] ): string {
return $this->parseToMML( $this->fname, $arguments, $state );
}
/** @inheritDoc */
public function extractIdentifiers( $args = null ) {
if ( $args == null ) {
$args = [ $this->arg1, $this->arg2 ];
}
return parent::extractIdentifiers( $args );
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Aug 18, 19:01 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e1/11/0e7b2dbc2f2b211ea2c714804ee2
Default Alt Text
Fun2.php (1 KB)

Event Timeline