| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class NoTemplateFoundException extends RuntimeException |
||
| 10 | { |
||
| 11 | const T_SOURCE = 1; |
||
| 12 | const T_DEST = 2; |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $name; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | protected $type; |
||
| 22 | |||
| 23 | public function __construct(string $message, int $code, string $name, int $type = 0) |
||
| 24 | { |
||
| 25 | $this->name = $name; |
||
| 26 | $this->type = $type; |
||
| 27 | parent::__construct($message, $code); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getTemplateName(): string |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return int |
||
| 40 | */ |
||
| 41 | public function getTemplateType(): int |
||
| 44 | } |
||
| 45 | } |
||
| 46 |