Preview: EventReferenceToMethodName.php
Size: 848 B
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/rector-symfony/src/ValueObject/EventReferenceToMethodName.php
<?php
declare (strict_types=1);
namespace Rector\Symfony\ValueObject;
use PhpParser\Node\Expr\ClassConstFetch;
use Rector\Symfony\Contract\EventReferenceToMethodNameInterface;
final class EventReferenceToMethodName implements EventReferenceToMethodNameInterface
{
/**
* @readonly
* @var \PhpParser\Node\Expr\ClassConstFetch
*/
private $classConstFetch;
/**
* @readonly
* @var string
*/
private $methodName;
public function __construct(ClassConstFetch $classConstFetch, string $methodName)
{
$this->classConstFetch = $classConstFetch;
$this->methodName = $methodName;
}
public function getClassConstFetch() : ClassConstFetch
{
return $this->classConstFetch;
}
public function getMethodName() : string
{
return $this->methodName;
}
}
Directory Contents
Dirs: 4 × Files: 10