Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5966536
Fun4.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Fun4.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Math\WikiTexVC\Nodes
;
class
Fun4
extends
TexNode
{
/** @var string */
protected
$fname
;
/** @var TexNode */
protected
$arg1
;
/** @var TexNode */
protected
$arg2
;
/** @var TexNode */
protected
$arg3
;
/** @var TexNode */
protected
$arg4
;
public
function
__construct
(
string
$fname
,
TexNode
$arg1
,
TexNode
$arg2
,
TexNode
$arg3
,
TexNode
$arg4
)
{
parent
::
__construct
(
$fname
,
$arg1
,
$arg2
,
$arg3
,
$arg4
);
$this
->
fname
=
$fname
;
$this
->
arg1
=
$arg1
;
$this
->
arg2
=
$arg2
;
$this
->
arg3
=
$arg3
;
$this
->
arg4
=
$arg4
;
}
/**
* @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
;
}
/**
* @return TexNode
*/
public
function
getArg3
():
TexNode
{
return
$this
->
arg3
;
}
/**
* @return TexNode
*/
public
function
getArg4
():
TexNode
{
return
$this
->
arg4
;
}
/** @inheritDoc */
public
function
inCurlies
()
{
return
$this
->
render
();
}
/** @inheritDoc */
public
function
render
()
{
return
'{'
.
$this
->
fname
.
' '
.
$this
->
arg1
->
inCurlies
()
.
$this
->
arg2
->
inCurlies
()
.
$this
->
arg3
->
inCurlies
()
.
$this
->
arg4
->
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
,
$this
->
arg3
,
$this
->
arg4
];
}
return
parent
::
extractIdentifiers
(
$args
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 11:42 (4 d, 12 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/d7/271aeda3f081be0d72fb7acece69
Default Alt Text
Fun4.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment