mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
We were on v3 that is no longer maintained and compatibility is annonced for PHP 7.2. v4 is active and supports PHP up to 8.0 No problem to update as this is only used in the config editor (\Combodo\iTop\Config\Validator\iTopConfigAstValidator)
32 lines
649 B
PHP
32 lines
649 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Node\Expr;
|
|
|
|
use PhpParser\Node;
|
|
use PhpParser\Node\MatchArm;
|
|
|
|
class Match_ extends Node\Expr
|
|
{
|
|
/** @var Node\Expr */
|
|
public $cond;
|
|
/** @var MatchArm[] */
|
|
public $arms;
|
|
|
|
/**
|
|
* @param MatchArm[] $arms
|
|
*/
|
|
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';
|
|
}
|
|
}
|