TemplateNotFound.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\League\Plates\Exception; |
| 4 | |
| 5 | final class TemplateNotFound extends \LogicException |
| 6 | { |
| 7 | private $template; |
| 8 | private $paths; |
| 9 | public function __construct(string $template, array $paths, string $message) |
| 10 | { |
| 11 | $this->template = $template; |
| 12 | $this->paths = $paths; |
| 13 | parent::__construct($message); |
| 14 | } |
| 15 | public function template() : string |
| 16 | { |
| 17 | return $this->template; |
| 18 | } |
| 19 | public function paths() : array |
| 20 | { |
| 21 | return $this->paths; |
| 22 | } |
| 23 | } |
| 24 |