for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Eclipxe\XlsxExporter\Exceptions;
use LogicException;
final class InvalidWorkSheetNameException extends LogicException implements XlsxException
{
private string $name;
private string $reason;
public function __construct(string $name, string $reason)
parent::__construct("Invalid worksheet name '$name': $reason");
$this->name = $name;
$this->reason = $reason;
}
public function getName(): string
return $this->name;
public function getReason(): string
return $this->reason;