rector/rules/Transform/ValueObject/StaticCallToNew.php

35 lines
522 B
PHP

<?php
declare(strict_types=1);
namespace Rector\Transform\ValueObject;
final class StaticCallToNew
{
/**
* @var string
*/
private $class;
/**
* @var string
*/
private $method;
public function __construct(string $class, string $method)
{
$this->class = $class;
$this->method = $method;
}
public function getClass(): string
{
return $this->class;
}
public function getMethod(): string
{
return $this->method;
}
}