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

TemplateNotFound   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A template() 0 3 1
A paths() 0 3 1
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