mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
58 lines
1.0 KiB
PHP
58 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 $methodIfNoArgs;
|
|
|
|
/**
|
|
* @var string|null
|
|
*/
|
|
private $methodIfArgs;
|
|
|
|
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;
|
|
}
|
|
}
|