| 1 | <?php |
||
| 11 | abstract class AbstractCollection implements \Iterator, CollectionInterface |
||
| 12 | { |
||
| 13 | /** @var array */ |
||
| 14 | protected $values; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param array $values |
||
| 18 | */ |
||
| 19 | public function __construct(array $values = []) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function containsKey($key) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | public function get($key) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function contains($value) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritDoc |
||
| 52 | */ |
||
| 53 | public function current() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritDoc |
||
| 60 | */ |
||
| 61 | public function next() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @inheritDoc |
||
| 68 | */ |
||
| 69 | public function key() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @inheritDoc |
||
| 76 | */ |
||
| 77 | public function valid() |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @inheritDoc |
||
| 84 | */ |
||
| 85 | public function rewind() |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @param mixed $key |
||
| 92 | * |
||
| 93 | * @throws OutOfBoundsException |
||
| 94 | */ |
||
| 95 | protected function assertContainsKey($key) |
||
| 101 | } |
||
| 102 |