<?php

declare (strict_types=1);
namespace Rector\Transform\ValueObject;

use PHPStan\Type\ObjectType;
final class CallableInMethodCallToVariable
{
    /**
     * @readonly
     * @var string
     */
    private $classType;
    /**
     * @readonly
     * @var string
     */
    private $methodName;
    /**
     * @readonly
     * @var int
     */
    private $argumentPosition;
    public function __construct(string $classType, string $methodName, int $argumentPosition)
    {
        $this->classType = $classType;
        $this->methodName = $methodName;
        $this->argumentPosition = $argumentPosition;
    }
    public function getObjectType() : \PHPStan\Type\ObjectType
    {
        return new \PHPStan\Type\ObjectType($this->classType);
    }
    public function getMethodName() : string
    {
        return $this->methodName;
    }
    public function getArgumentPosition() : int
    {
        return $this->argumentPosition;
    }
}
