matchArmsFactory = $matchArmsFactory; } /** * @param CondAndExpr[] $condAndExprs */ public function createFromCondAndExprs(\PhpParser\Node\Expr $condExpr, array $condAndExprs) : \PhpParser\Node\Expr\Match_ { $matchArms = $this->matchArmsFactory->createFromCondAndExprs($condAndExprs); return new \PhpParser\Node\Expr\Match_($condExpr, $matchArms); } }