rector/packages/FileSystemRector/ValueObject/AddedFileWithNodes.php
Tomas Votruba cdc3b7adef Updated Rector to commit f451b0b8e1e6761ec7f50809745d44d01caba66d
f451b0b8e1 [PHP 8.0] Bump to promoted properties (#4)
2021-05-10 23:39:21 +00:00

39 lines
883 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 \Rector\FileSystemRector\Contract\AddedFileInterface, \Rector\FileSystemRector\Contract\FileWithNodesInterface
{
/**
* @var string
*/
private $filePath;
/**
* @var mixed[]
*/
private $nodes;
/**
* @param Node[] $nodes
*/
public function __construct(string $filePath, array $nodes)
{
$this->filePath = $filePath;
$this->nodes = $nodes;
}
public function getFilePath() : string
{
return $this->filePath;
}
/**
* @return Node[]
*/
public function getNodes() : array
{
return $this->nodes;
}
}