Ir a la última revisión |
     |
    Ultima modificación |
    Ver Log
    | 
  
  
  
     
        
        | Rev | 
        Autor | 
        Línea Nro. | 
        Línea | 
        
     
     
        
           | 1 | 
           efrain | 
           1 | 
           <?php
  | 
        
        
            | 
            | 
           2 | 
              | 
        
        
            | 
            | 
           3 | 
           declare(strict_types=1);
  | 
        
        
            | 
            | 
           4 | 
              | 
        
        
            | 
            | 
           5 | 
           namespace OpenSpout\Writer\Exception\Border;
  | 
        
        
            | 
            | 
           6 | 
              | 
        
        
            | 
            | 
           7 | 
           use OpenSpout\Common\Entity\Style\BorderPart;
  | 
        
        
            | 
            | 
           8 | 
           use OpenSpout\Writer\Exception\WriterException;
  | 
        
        
            | 
            | 
           9 | 
              | 
        
        
            | 
            | 
           10 | 
           final class InvalidWidthException extends WriterException
  | 
        
        
            | 
            | 
           11 | 
           {
  | 
        
        
            | 
            | 
           12 | 
               public function __construct(string $name)
  | 
        
        
            | 
            | 
           13 | 
               {
  | 
        
        
            | 
            | 
           14 | 
                   $msg = '%s is not a valid width identifier for a border. Valid identifiers are: %s.';
  | 
        
        
            | 
            | 
           15 | 
              | 
        
        
            | 
            | 
           16 | 
                   parent::__construct(sprintf($msg, $name, implode(',', BorderPart::allowedWidths)));
  | 
        
        
            | 
            | 
           17 | 
               }
  | 
        
        
            | 
            | 
           18 | 
           }
  |