CollectionInterface::isEmpty()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
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