File manager - Edit - /var/www/payraty/helpdesk/vendor/rector/rector/rules/Transform/ValueObject/ArrayFuncCallToMethodCall.php
Back
<?php declare (strict_types=1); namespace Rector\Transform\ValueObject; use Rector\Core\Validation\RectorAssert; use Rector\Transform\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface; final class ArrayFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface { /** * @var non-empty-string * @readonly */ private $function; /** * @var class-string * @readonly */ private $class; /** * @var non-empty-string * @readonly */ private $arrayMethod; /** * @var non-empty-string * @readonly */ private $nonArrayMethod; /** * @param non-empty-string $function * @param class-string $class * @param non-empty-string $arrayMethod * @param non-empty-string $nonArrayMethod */ public function __construct(string $function, string $class, string $arrayMethod, string $nonArrayMethod) { $this->function = $function; $this->class = $class; $this->arrayMethod = $arrayMethod; $this->nonArrayMethod = $nonArrayMethod; RectorAssert::className($class); RectorAssert::functionName($function); RectorAssert::methodName($arrayMethod); RectorAssert::methodName($nonArrayMethod); } public function getFunction() : string { return $this->function; } public function getClass() : string { return $this->class; } public function getArrayMethod() : string { return $this->arrayMethod; } public function getNonArrayMethod() : string { return $this->nonArrayMethod; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings