mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-30 07:50:53 +00:00
1e09b81ddb
e68c8d23cb
Fix CallableTypeParameterNode and IdentifierTypeParameterNode crash (#3353)
24 lines
571 B
PHP
24 lines
571 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Symplify\RuleDocGenerator\ValueObject\CodeSample;
|
|
|
|
use Symplify\RuleDocGenerator\ValueObject\AbstractCodeSample;
|
|
final class ExtraFileCodeSample extends AbstractCodeSample
|
|
{
|
|
/**
|
|
* @readonly
|
|
* @var string
|
|
*/
|
|
private $extraFile;
|
|
public function __construct(string $badCode, string $goodCode, string $extraFile)
|
|
{
|
|
$this->extraFile = $extraFile;
|
|
parent::__construct($badCode, $goodCode);
|
|
}
|
|
public function getExtraFile() : string
|
|
{
|
|
return $this->extraFile;
|
|
}
|
|
}
|