| 1 | <?php |
||
| 22 | abstract class AbstractCollection implements Collection |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Returns how many elements are in the Collection |
||
| 26 | * |
||
| 27 | * @return int The number of elements in the Collection |
||
| 28 | */ |
||
| 29 | 9 | public function count() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | */ |
||
| 37 | 7 | public function empty() : bool |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | */ |
||
| 45 | 5 | public function contains($searchFor) : bool |
|
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritDoc} |
||
| 60 | */ |
||
| 61 | public function map(callable $cb) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritDoc} |
||
| 71 | */ |
||
| 72 | public function toArray() : array |
||
| 76 | } |
||
| 77 |