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