for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\Funky;
class IoException extends \RuntimeException
{
public static function cannotWriteFile(string $fileName): self
return new self(sprintf(
'Failed to write file %s',
$fileName
));
}
public static function cannotCreateDirectory(string $dirName, string $message): self
'Failed to create directory %s: %s',
$dirName,
$message