| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\OpenSpout\Writer\Exception\Border; |
| 4 |
|
| 5 |
use FluentCart\OpenSpout\Common\Entity\Style\BorderPart; |
| 6 |
use FluentCart\OpenSpout\Writer\Exception\WriterException; |
| 7 |
class InvalidWidthException extends WriterException |
| 8 |
{ |
| 9 |
public function __construct($name) |
| 10 |
{ |
| 11 |
$msg = '%s is not a valid width identifier for a border. Valid identifiers are: %s.'; |
| 12 |
parent::__construct(\sprintf($msg, $name, \implode(',', BorderPart::getAllowedWidths()))); |
| 13 |
} |
| 14 |
} |
| 15 |
|