class Match_
Hierarchy
- class \PhpParser\Node\Expr\Match_ extends \Node\Expr
Expanded class hierarchy of Match_
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Match_.php, line 8
Namespace
PhpParser\Node\ExprView source
class Match_ extends Node\Expr {
/** @var Node\Expr Condition */
public Node\Expr $cond;
/** @var MatchArm[] */
public array $arms;
/**
* @param Node\Expr $cond Condition
* @param MatchArm[] $arms
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Node\Expr $cond, array $arms = [], array $attributes = []) {
$this->attributes = $attributes;
$this->cond = $cond;
$this->arms = $arms;
}
public function getSubNodeNames() : array {
return [
'cond',
'arms',
];
}
public function getType() : string {
return 'Expr_Match';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Match_::$arms | public | property | @var MatchArm[] |
Match_::$cond | public | property | @var Node\Expr Condition |
Match_::getSubNodeNames | public | function | |
Match_::getType | public | function | |
Match_::__construct | public | function |