40 lines
801 B
PHP
Raw Normal View History

2020-03-29 00:06:05 +01:00
<?php
declare (strict_types=1);
2020-03-29 00:06:05 +01:00
namespace Rector\NodeCollector\ValueObject;
use PhpParser\Node\Expr;
2020-03-29 00:06:05 +01:00
final class ArrayCallable
{
/**
* @var \PhpParser\Node\Expr
*/
private $callerExpr;
2020-03-29 00:06:05 +01:00
/**
* @var string
*/
private $class;
/**
* @var string
*/
private $method;
public function __construct(\PhpParser\Node\Expr $callerExpr, string $class, string $method)
2020-03-29 00:06:05 +01:00
{
$this->callerExpr = $callerExpr;
2020-03-29 00:06:05 +01:00
$this->class = $class;
$this->method = $method;
}
public function getClass() : string
2020-03-29 00:06:05 +01:00
{
return $this->class;
}
public function getMethod() : string
2020-03-29 00:06:05 +01:00
{
return $this->method;
}
public function getCallerExpr() : \PhpParser\Node\Expr
{
return $this->callerExpr;
}
2020-03-29 00:06:05 +01:00
}