rector/packages/NodeCollector/ValueObject/ArrayCallableDynamicMethod.php
Abdul Malik Ikhsan fc10fce13d
[Rectify] [Php81] Enable Rectify on Readonly Property only (#1384)
* re-enable rectify and ecs

* [Rectify] [Php81] Enable Rectify on Readonly Property only

* comment

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2021-12-04 15:32:52 +03:00

33 lines
566 B
PHP

<?php
declare(strict_types=1);
namespace Rector\NodeCollector\ValueObject;
use PhpParser\Node\Expr;
final class ArrayCallableDynamicMethod
{
public function __construct(
private readonly Expr $callerExpr,
private readonly string $class,
private readonly Expr $method
) {
}
public function getClass(): string
{
return $this->class;
}
public function getMethod(): Expr
{
return $this->method;
}
public function getCallerExpr(): Expr
{
return $this->callerExpr;
}
}