| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class UnsupportedDateFormatException extends InvalidArgumentException implements ExceptionInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $format; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $format |
||
| 17 | * @param null|Exception $previous |
||
| 18 | */ |
||
| 19 | public function __construct($format, \Exception $previous = null) |
||
| 20 | { |
||
| 21 | $this->format = $format; |
||
| 22 | |||
| 23 | $message = sprintf('Unsupported date format [%s]', $format); |
||
| 24 | |||
| 25 | parent::__construct($message, 0, $previous); |
||
| 26 | } |
||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getFormat() |
||
| 33 | } |
||
| 34 | } |
||
| 35 |