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