1 | <?php |
||
27 | class Date implements ValidatorInterface |
||
28 | { |
||
29 | /** |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $specification = \DateTime::ISO8601; |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | * |
||
38 | * @see \Mcustiel\SimpleRequest\Interfaces\Specificable::setSpecification() |
||
39 | */ |
||
40 | 82 | public function setSpecification($specification = null) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | * |
||
50 | * @see \Mcustiel\SimpleRequest\Interfaces\ValidatorInterface::validate() |
||
51 | */ |
||
52 | 84 | public function validate($value) |
|
58 | } |
||
59 |