class PreDec
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
Expanded class hierarchy of PreDec
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ PreDec.php, line 7
Namespace
PhpParser\Node\ExprView source
class PreDec extends Expr {
/** @var Expr Variable */
public Expr $var;
/**
* Constructs a pre decrement 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_PreDec';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
PreDec::$var | public | property | @var Expr Variable |
PreDec::getSubNodeNames | public | function | |
PreDec::getType | public | function | |
PreDec::__construct | public | function | Constructs a pre decrement node. |