/constraint/md5.php

https://bitbucket.org/oligriffiths/com_validation · PHP · 20 lines · 13 code · 2 blank · 5 comment · 0 complexity · 4de3b54c93523272816244be2fe1910e MD5 · raw file

  1. <?php
  2. /**
  3. * Created By: Oli Griffiths
  4. * Date: 11/12/2012
  5. * Time: 12:03
  6. */
  7. namespace Nooku\Component\Validation;
  8. use Nooku\Library;
  9. class ConstraintMd5 extends ConstraintDefault
  10. {
  11. protected function _initialize(Library\ObjectConfig $config)
  12. {
  13. $config->append(array(
  14. 'message' => '{{ target }} must be a valid MD5 hash, "{{ value }}" given',
  15. ));
  16. parent::_initialize($config);
  17. }
  18. }