rector/packages/FileSystemRector/ValueObject/AddedFileWithNodes.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

35 lines
696 B
PHP

<?php
declare(strict_types=1);
namespace Rector\FileSystemRector\ValueObject;
use PhpParser\Node;
use Rector\FileSystemRector\Contract\AddedFileInterface;
use Rector\FileSystemRector\Contract\FileWithNodesInterface;
final class AddedFileWithNodes implements AddedFileInterface, FileWithNodesInterface
{
/**
* @param Node\Stmt[] $nodes
*/
public function __construct(
private readonly string $filePath,
private readonly array $nodes
) {
}
public function getFilePath(): string
{
return $this->filePath;
}
/**
* @return Node\Stmt[]
*/
public function getNodes(): array
{
return $this->nodes;
}
}