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