File manager - Edit - /var/www/payraty/helpdesk/vendor/rector/rector/rules/Transform/ValueObject/NewArgToMethodCall.php
Back
<?php declare (strict_types=1); namespace Rector\Transform\ValueObject; use PHPStan\Type\ObjectType; use Rector\Core\Validation\RectorAssert; final class NewArgToMethodCall { /** * @readonly * @var string */ private $type; /** * @readonly * @var mixed */ private $value; /** * @readonly * @var string */ private $methodCall; /** * @param mixed $value */ public function __construct(string $type, $value, string $methodCall) { $this->type = $type; $this->value = $value; $this->methodCall = $methodCall; RectorAssert::className($type); RectorAssert::className($methodCall); } public function getObjectType() : ObjectType { return new ObjectType($this->type); } /** * @return mixed */ public function getValue() { return $this->value; } public function getMethodCall() : string { return $this->methodCall; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings