rector/rules/Transform/ValueObject/ArgumentFuncCallToMethodCall.php

48 lines
1.0 KiB
PHP

<?php
declare (strict_types=1);
namespace Rector\Transform\ValueObject;
final class ArgumentFuncCallToMethodCall
{
/**
* @var string
*/
private $function;
/**
* @var string
*/
private $class;
/**
* @var string|null
*/
private $methodIfArgs;
/**
* @var string|null
*/
private $methodIfNoArgs;
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;
}
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;
}
}