File manager - Edit - /var/www/payraty/helpdesk/vendor/rector/rector/rules/Php80/NodeFactory/MatchFactory.php
Back
<?php declare (strict_types=1); namespace Rector\Php80\NodeFactory; use PhpParser\Node\Expr; use PhpParser\Node\Expr\Match_; use Rector\Php80\ValueObject\CondAndExpr; final class MatchFactory { /** * @readonly * @var \Rector\Php80\NodeFactory\MatchArmsFactory */ private $matchArmsFactory; public function __construct(\Rector\Php80\NodeFactory\MatchArmsFactory $matchArmsFactory) { $this->matchArmsFactory = $matchArmsFactory; } /** * @param CondAndExpr[] $condAndExprs */ public function createFromCondAndExprs(Expr $condExpr, array $condAndExprs) : Match_ { $matchArms = $this->matchArmsFactory->createFromCondAndExprs($condAndExprs); return new Match_($condExpr, $matchArms); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings