class PostInc
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
Expanded class hierarchy of PostInc
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ PostInc.php, line 7
Namespace
PhpParser\Node\ExprView source
class PostInc extends Expr {
/** @var Expr Variable */
public Expr $var;
/**
* Constructs a post increment node.
*
* @param Expr $var Variable
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Expr $var, array $attributes = []) {
$this->attributes = $attributes;
$this->var = $var;
}
public function getSubNodeNames() : array {
return [
'var',
];
}
public function getType() : string {
return 'Expr_PostInc';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
PostInc::$var | public | property | @var Expr Variable |
PostInc::getSubNodeNames | public | function | |
PostInc::getType | public | function | |
PostInc::__construct | public | function | Constructs a post increment node. |