PresenceVerifierInterface.php 842B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Illuminate\Validation;
  3. interface PresenceVerifierInterface
  4. {
  5. /**
  6. * Count the number of objects in a collection having the given value.
  7. *
  8. * @param string $collection
  9. * @param string $column
  10. * @param string $value
  11. * @param int $excludeId
  12. * @param string $idColumn
  13. * @param array $extra
  14. * @return int
  15. */
  16. public function getCount($collection, $column, $value, $excludeId = null, $idColumn = null, array $extra = []);
  17. /**
  18. * Count the number of objects in a collection with the given values.
  19. *
  20. * @param string $collection
  21. * @param string $column
  22. * @param array $values
  23. * @param array $extra
  24. * @return int
  25. */
  26. public function getMultiCount($collection, $column, array $values, array $extra = []);
  27. }