1 | <?php |
||
5 | class FileExtensionValidator implements ValidatorInterface |
||
6 | { |
||
7 | /** @var array $validExtensions */ |
||
8 | private $validExtensions; |
||
9 | |||
10 | /** |
||
11 | * FileExtensionValidator constructor. |
||
12 | * @param array $validExtensions |
||
13 | */ |
||
14 | 1 | public function __construct(array $validExtensions) |
|
18 | |||
19 | /** |
||
20 | * @param mixed $value |
||
21 | * @return bool|void |
||
22 | */ |
||
23 | 1 | public function isValid($value) |
|
31 | |||
32 | /** |
||
33 | * @return array|void |
||
34 | */ |
||
35 | 1 | public function getMessages() |
|
49 | } |