CollectionInterface
last analyzed

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
isEmpty() 0 1 ?
clear() 0 1 ?
1
<?php
2
3
namespace Chadicus\Spl\DataStructures;
4
5
/**
6
 * Iterface for collection objects.
7
 */
8
interface CollectionInterface extends \Iterator, \Countable
9
{
10
    /**
11
     * Checks whether the collection is empty.
12
     *
13
     * @return boolean
14
     */
15
    public function isEmpty();
16
17
    /**
18
     * Clears the collection of all elements.
19
     *
20
     * @return CollectionInterface
21
     */
22
    public function clear();
23
}
24