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