rector/packages/FileFormatter/Exception/InvalidIndentStringException.php
2021-05-10 22:23:08 +00:00

18 lines
399 B
PHP

<?php
declare (strict_types=1);
namespace Rector\FileFormatter\Exception;
use InvalidArgumentException;
final class InvalidIndentStringException extends \InvalidArgumentException
{
/**
* @return $this
*/
public static function fromString(string $string)
{
$message = \sprintf('This is not valid indentation "%s"', $string);
return new self($message);
}
}