Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
4 / 4 |
FilterNotFound | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
4 / 4 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
getFilter | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
namespace Verja\Exception; | |
use Verja\Exception; | |
class FilterNotFound extends Exception | |
{ | |
/** @var string */ | |
protected $filter; | |
/** | |
* FilterNotFound constructor. | |
* | |
* @param string $filter | |
*/ | |
public function __construct(string $filter) | |
{ | |
$this->filter = $filter; | |
parent::__construct(sprintf('Filter \'%s\' not found', $filter)); | |
} | |
/** | |
* @return string | |
*/ | |
public function getFilter(): string | |
{ | |
return $this->filter; | |
} | |
} |