CollectionInterface.php
1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
// Copyright (c) Lellys Informática. All rights reserved. See License.txt in the project root for license information.
namespace Easy\Collections;
use Countable;
use IteratorAggregate;
use Serializable;
/**
* Provides functionality to evaluate queries against a specific data source wherein the type of the data is not specified.
*/
interface CollectionInterface extends Countable, Serializable, IteratorAggregate
{
/**
* Clear all of the elements in the collection
* @return CollectionArray
*/
public function clear();
/**
* Verifies whether a colletion is empty
* @return boolean
*/
public function isEmpty();
/**
* Gets an ICollection object containing the values in the IDictionary object.
*/
public function values();
/**
* Merge the elements of this Collection into another
* @param CollectionConvertableInterface $collection
* @return CollectionInterface
*/
public function concat(CollectionConvertableInterface $collection);
}