%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/vacivi36/code/vendor/rector/rector/rules/Transform/ValueObject/
Upload File :
Create Path :
Current File : //home2/vacivi36/code/vendor/rector/rector/rules/Transform/ValueObject/NewArgToMethodCall.php

<?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;
    }
}

Zerion Mini Shell 1.0