rector/packages/Testing/ValueObject/InputFilePathWithExpectedFile.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

32 lines
1001 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Testing\ValueObject;
use Rector\FileSystemRector\ValueObject\AddedFileWithContent;
use Symplify\SmartFileSystem\SmartFileInfo;
final class InputFilePathWithExpectedFile
{
/**
* @var string
*/
private $inputFilePath;
/**
* @var \Rector\FileSystemRector\ValueObject\AddedFileWithContent
*/
private $addedFileWithContent;
public function __construct(string $inputFilePath, \Rector\FileSystemRector\ValueObject\AddedFileWithContent $addedFileWithContent)
{
$this->inputFilePath = $inputFilePath;
$this->addedFileWithContent = $addedFileWithContent;
}
public function getInputFileInfo() : \Symplify\SmartFileSystem\SmartFileInfo
{
return new \Symplify\SmartFileSystem\SmartFileInfo($this->inputFilePath);
}
public function getAddedFileWithContent() : \Rector\FileSystemRector\ValueObject\AddedFileWithContent
{
return $this->addedFileWithContent;
}
}