Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5979952
Infix.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
Infix.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Math\WikiTexVC\Nodes
;
class
Infix
extends
TexNode
{
/** @var string */
private
$op
;
/** @var TexArray */
private
$arg1
;
/** @var TexArray */
private
$arg2
;
public
function
__construct
(
string
$op
,
TexArray
$arg1
,
TexArray
$arg2
)
{
parent
::
__construct
(
$op
,
$arg1
,
$arg2
);
$this
->
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 21:10 (5 d, 17 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
53/29/f05b7898ed6d531e549cc8aeaad4
Default Alt Text
Infix.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment