AlwaysValid.php 544 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
  4. * SPDX-License-Identifier: MIT
  5. */
  6. declare(strict_types=1);
  7. namespace Respect\Validation\Rules;
  8. /**
  9. * Validates any input as valid.
  10. *
  11. * @author Alexandre Gomes Gaigalas <alganet@gmail.com>
  12. * @author Henrique Moody <henriquemoody@gmail.com>
  13. * @author William Espindola <oi@williamespindola.com.br>
  14. */
  15. final class AlwaysValid extends AbstractRule
  16. {
  17. /**
  18. * {@inheritDoc}
  19. */
  20. public function validate($input): bool
  21. {
  22. return true;
  23. }
  24. }