mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 02:36:52 +01:00
38 lines
841 B
PHP
38 lines
841 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 AddedFileWithContent
|
|
*/
|
|
private $addedFileWithContent;
|
|
|
|
public function __construct(string $inputFilePath, AddedFileWithContent $addedFileWithContent)
|
|
{
|
|
$this->inputFilePath = $inputFilePath;
|
|
$this->addedFileWithContent = $addedFileWithContent;
|
|
}
|
|
|
|
public function getInputFileInfo(): SmartFileInfo
|
|
{
|
|
return new SmartFileInfo($this->inputFilePath);
|
|
}
|
|
|
|
public function getAddedFileWithContent(): AddedFileWithContent
|
|
{
|
|
return $this->addedFileWithContent;
|
|
}
|
|
}
|