rector/packages/FileSystemRector/ValueObject/AddedFileWithContent.php

36 lines
669 B
PHP

<?php
declare(strict_types=1);
namespace Rector\FileSystemRector\ValueObject;
use Rector\FileSystemRector\Contract\AddedFileInterface;
final class AddedFileWithContent implements AddedFileInterface
{
/**
* @var string
*/
private $filePath;
/**
* @var string
*/
private $fileContent;
public function __construct(string $filePath, string $fileContent)
{
$this->filePath = $filePath;
$this->fileContent = $fileContent;
}
public function getFilePath(): string
{
return $this->filePath;
}
public function getFileContent(): string
{
return $this->fileContent;
}
}