Completed
Pull Request — v3 (#279)
by Gabriel
11:00
created

TemplateNotFound::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace League\Plates\Exception;
4
5
final class TemplateNotFound extends \LogicException
6
{
7
    private $template;
8
    private $paths;
9
10
    public function __construct(string $template, array $paths, string $message) {
11
        $this->template = $template;
12
        $this->paths = $paths;
13
        parent::__construct($message);
14
    }
15
16
    public function template(): string {
17
        return $this->template;
18
    }
19
20
    public function paths(): array {
21
        return $this->paths;
22
    }
23
}
24