Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7450714
AssignmentPattern.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
AssignmentPattern.php
View Options
<?php
/**
* This file is part of the Peast package
*
* (c) Marco Marchiò <marco.mm89@gmail.com>
*
* For the full copyright and license information refer to the LICENSE file
* distributed with this source code
*/
namespace
Peast\Syntax\Node
;
/**
* A node that represents an assignment in a binding context.
* For example "a = b" in: var {a = b} = c
*
* @author Marco Marchiò <marco.mm89@gmail.com>
*/
class
AssignmentPattern
extends
Node
implements
Pattern
{
/**
* Map of node properties
*
* @var array
*/
protected
$propertiesMap
=
array
(
"left"
=>
true
,
"right"
=>
true
);
/**
* The left node of the assignment
*
* @var Pattern
*/
protected
$left
;
/**
* The right node of the assignment
*
* @var Expression
*/
protected
$right
;
/**
* Returns the left node of the assignment
*
* @return Pattern
*/
public
function
getLeft
()
{
return
$this
->
left
;
}
/**
* Sets the left node of the assignment
*
* @param Pattern $left Left node
*
* @return $this
*/
public
function
setLeft
(
Pattern
$left
)
{
$this
->
left
=
$left
;
return
$this
;
}
/**
* Returns the right node of the assignment
*
* @return Expression
*/
public
function
getRight
()
{
return
$this
->
right
;
}
/**
* Sets the right node of the assignment
*
* @param Expression $right Right node
*
* @return $this
*/
public
function
setRight
(
Expression
$right
)
{
$this
->
right
=
$right
;
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 21:03 (2 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9a/6c/9acf3b2f4069f8fa2befe027b402
Default Alt Text
AssignmentPattern.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment