1 | <?php |
||
6 | class Sanitizer |
||
7 | { |
||
8 | /** @var \Wandu\Validator\Validator */ |
||
9 | protected $validator; |
||
10 | |||
11 | /** @var string */ |
||
12 | protected $T; |
||
13 | |||
14 | /** @var \ReflectionClass */ |
||
15 | private $refl; |
||
16 | |||
17 | /** |
||
18 | * @param string|\Wandu\Validator\Contracts\RuleInterface|\Wandu\Validator\Contracts\TesterInterface|\Wandu\Validator\Validator $rule |
||
19 | * @param string $T |
||
20 | */ |
||
21 | 1 | public function __construct($rule, string $T) |
|
30 | |||
31 | /** |
||
32 | * @param mixed $data |
||
33 | * @return {$this->T} |
||
|
|||
34 | */ |
||
35 | 1 | public function sanitize($data) |
|
50 | |||
51 | /** |
||
52 | * @return \ReflectionClass |
||
53 | */ |
||
54 | 1 | protected function getReflectionClass(): ReflectionClass |
|
61 | } |
||
62 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.