1 | <?php namespace Arcanedev\Sanitizer\Filters; |
||
13 | class FormatDateFilter implements Filterable |
||
14 | { |
||
15 | /* ------------------------------------------------------------------------------------------------ |
||
16 | | Main Functions |
||
17 | | ------------------------------------------------------------------------------------------------ |
||
18 | */ |
||
19 | /** |
||
20 | * Format date of the given string. |
||
21 | * |
||
22 | * @param mixed $value |
||
23 | * @param array $options |
||
24 | * |
||
25 | * @return string|mixed |
||
26 | */ |
||
27 | 36 | public function filter($value, array $options = []) |
|
38 | |||
39 | /* ------------------------------------------------------------------------------------------------ |
||
40 | | Other Functions |
||
41 | | ------------------------------------------------------------------------------------------------ |
||
42 | */ |
||
43 | /** |
||
44 | * Check Options. |
||
45 | * |
||
46 | * @param array $options |
||
47 | * |
||
48 | * @throws \InvalidArgumentException |
||
49 | */ |
||
50 | 36 | private function checkOptions(array $options) |
|
58 | } |
||
59 |