class AssignOp
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
Expanded class hierarchy of AssignOp
15 files declare their use of AssignOp
- BitwiseAnd.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ AssignOp/ BitwiseAnd.php - BitwiseOr.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ AssignOp/ BitwiseOr.php - BitwiseXor.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ AssignOp/ BitwiseXor.php - Coalesce.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ AssignOp/ Coalesce.php - Concat.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ AssignOp/ Concat.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ AssignOp.php, line 7
Namespace
PhpParser\Node\ExprView source
abstract class AssignOp extends Expr {
/** @var Expr Variable */
public Expr $var;
/** @var Expr Expression */
public Expr $expr;
/**
* Constructs a compound assignment operation node.
*
* @param Expr $var Variable
* @param Expr $expr Expression
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Expr $var, Expr $expr, array $attributes = []) {
$this->attributes = $attributes;
$this->var = $var;
$this->expr = $expr;
}
public function getSubNodeNames() : array {
return [
'var',
'expr',
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
AssignOp::$expr | public | property | @var Expr Expression |
AssignOp::$var | public | property | @var Expr Variable |
AssignOp::getSubNodeNames | public | function | |
AssignOp::__construct | public | function | Constructs a compound assignment operation node. |