1
0
mirror of https://github.com/nikic/PHP-Parser.git synced 2025-07-26 17:00:48 +02:00
Files
bin
doc
grammar
lib
PhpParser
Builder
Comment
ErrorHandler
Internal
Lexer
Node
Expr
AssignOp
BinaryOp
Cast
ArrayDimFetch.php
ArrayItem.php
Array_.php
Assign.php
AssignOp.php
AssignRef.php
BinaryOp.php
BitwiseNot.php
BooleanNot.php
Cast.php
ClassConstFetch.php
Clone_.php
Closure.php
ClosureUse.php
ConstFetch.php
Empty_.php
Error.php
ErrorSuppress.php
Eval_.php
Exit_.php
FuncCall.php
Include_.php
Instanceof_.php
Isset_.php
List_.php
MethodCall.php
New_.php
PostDec.php
PostInc.php
PreDec.php
PreInc.php
Print_.php
PropertyFetch.php
ShellExec.php
StaticCall.php
StaticPropertyFetch.php
Ternary.php
UnaryMinus.php
UnaryPlus.php
Variable.php
YieldFrom.php
Yield_.php
Name
Scalar
Stmt
Arg.php
Const_.php
Expr.php
FunctionLike.php
Identifier.php
Name.php
NullableType.php
Param.php
Scalar.php
Stmt.php
VarLikeIdentifier.php
NodeVisitor
Parser
PrettyPrinter
Builder.php
BuilderFactory.php
BuilderHelpers.php
Comment.php
ConstExprEvaluationException.php
ConstExprEvaluator.php
Error.php
ErrorHandler.php
JsonDecoder.php
Lexer.php
NameContext.php
Node.php
NodeAbstract.php
NodeDumper.php
NodeFinder.php
NodeTraverser.php
NodeTraverserInterface.php
NodeVisitor.php
NodeVisitorAbstract.php
Parser.php
ParserAbstract.php
ParserFactory.php
PrettyPrinterAbstract.php
test
test_old
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
UPGRADE-1.0.md
UPGRADE-2.0.md
UPGRADE-3.0.md
UPGRADE-4.0.md
composer.json
phpunit.xml.dist
PHP-Parser/lib/PhpParser/Node/Expr/AssignRef.php
2018-01-10 18:57:48 +01:00

35 lines
820 B
PHP

<?php declare(strict_types=1);
namespace PhpParser\Node\Expr;
use PhpParser\Node\Expr;
class AssignRef extends Expr
{
/** @var Expr Variable reference is assigned to */
public $var;
/** @var Expr Variable which is referenced */
public $expr;
/**
* Constructs an assignment node.
*
* @param Expr $var Variable
* @param Expr $expr Expression
* @param array $attributes Additional attributes
*/
public function __construct(Expr $var, Expr $expr, array $attributes = []) {
parent::__construct($attributes);
$this->var = $var;
$this->expr = $expr;
}
public function getSubNodeNames() : array {
return ['var', 'expr'];
}
public function getType() : string {
return 'Expr_AssignRef';
}
}