2020-11-01 16:39:04 +01:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2020-11-01 16:39:04 +01:00
|
|
|
namespace Rector\Testing\ValueObject;
|
|
|
|
|
|
|
|
use Rector\FileSystemRector\ValueObject\AddedFileWithContent;
|
|
|
|
use Symplify\SmartFileSystem\SmartFileInfo;
|
|
|
|
final class InputFilePathWithExpectedFile
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
private $inputFilePath;
|
|
|
|
/**
|
2021-05-10 23:39:21 +00:00
|
|
|
* @var \Rector\FileSystemRector\ValueObject\AddedFileWithContent
|
2020-11-01 16:39:04 +01:00
|
|
|
*/
|
|
|
|
private $addedFileWithContent;
|
2021-05-10 22:23:08 +00:00
|
|
|
public function __construct(string $inputFilePath, \Rector\FileSystemRector\ValueObject\AddedFileWithContent $addedFileWithContent)
|
2020-11-01 16:39:04 +01:00
|
|
|
{
|
|
|
|
$this->inputFilePath = $inputFilePath;
|
|
|
|
$this->addedFileWithContent = $addedFileWithContent;
|
|
|
|
}
|
2021-05-10 22:23:08 +00:00
|
|
|
public function getInputFileInfo() : \Symplify\SmartFileSystem\SmartFileInfo
|
2020-11-01 16:39:04 +01:00
|
|
|
{
|
2021-05-10 22:23:08 +00:00
|
|
|
return new \Symplify\SmartFileSystem\SmartFileInfo($this->inputFilePath);
|
2020-11-01 16:39:04 +01:00
|
|
|
}
|
2021-05-10 22:23:08 +00:00
|
|
|
public function getAddedFileWithContent() : \Rector\FileSystemRector\ValueObject\AddedFileWithContent
|
2020-11-01 16:39:04 +01:00
|
|
|
{
|
|
|
|
return $this->addedFileWithContent;
|
|
|
|
}
|
|
|
|
}
|