Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from CodeIncHQ/1.x
Browse files Browse the repository at this point in the history
v1.1.1
  • Loading branch information
Joan Fabrégat authored Oct 4, 2018
2 parents 14e065f + 2a6a13b commit 146b9ca
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 83 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CollectionInterface

The repository provides a simple PHP interface for iterable collections.
The repository provides two PHP interfaces for iterable collections:
* [`CollectionInterface`](src/CollectionInterface.php) for simple collections
* [`CountableCollectionInterface`](src/CountableCollectionInterface.php) for countable collections

## Installation

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeinc/collection-interface",
"version": "1.1.0",
"version": "1.1.1",
"description": "A simple PHP interface for iterable collections",
"homepage": "https://github.com/CodeIncHQ/CollectionInterface",
"type": "library",
Expand Down
33 changes: 0 additions & 33 deletions src/AggregatedCollectionInterface.php

This file was deleted.

16 changes: 15 additions & 1 deletion src/CollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,21 @@
* @package CodeInc\CollectionInterface
* @author Joan Fabrégat <[email protected]>
*/
interface CollectionInterface extends \Traversable
interface CollectionInterface extends \Iterator
{
/**
* @inheritdoc
*/
public function rewind():void;

/**
* @inheritdoc
*/
public function next():void;

/**
* @inheritdoc
* @return bool
*/
public function valid():bool;
}
47 changes: 0 additions & 47 deletions src/IteratorCollectionInterface.php

This file was deleted.

0 comments on commit 146b9ca

Please sign in to comment.