Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
FilterNotFound
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getFilter
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Verja\Exception;
4
5use Verja\Exception;
6
7class FilterNotFound extends Exception
8{
9    /** @var string */
10    protected $filter;
11
12    /**
13     * FilterNotFound constructor.
14     *
15     * @param string $filter
16     */
17    public function __construct(string $filter)
18    {
19        $this->filter = $filter;
20        parent::__construct(sprintf('Filter \'%s\' not found', $filter));
21    }
22
23    /**
24     * @return string
25     */
26    public function getFilter(): string
27    {
28        return $this->filter;
29    }
30}