<?php namespace Illuminate\Validation; interface PresenceVerifierInterface{
<?php
namespace
Illuminate\Validation;
interface
PresenceVerifierInterface
{
// this is a interface
/**
* Count the number of objects in a collection having the given value.
*
* @param string $collection
* @param string $column
* @param string $value
* @param int $excludeId
* @param string $idColumn
* @param array $extra
* @return int
*/
public function getCount($collection, $column, $value, $excludeId = null, $idColumn = null, array $extra = []);
public
function
getCount(
$collection
,
$column
$value
$excludeId
= null,
$idColumn
array
$extra
= []);
// Count the number of objects in a collection having the given value
// just Count by
* Count the number of objects in a collection with the given values.
* @param array $values
public function getMultiCount($collection, $column, array $values, array $extra = []);
getMultiCount(
$values
// get MultiCount}
// get MultiCount
}
相关阅读