1 | <?php |
||
10 | class KeyedCollection extends Collection implements KeyedCollectionInterface |
||
11 | { |
||
12 | /** |
||
13 | * Constructor |
||
14 | * |
||
15 | * @param array $data |
||
16 | * An array of data to populate the collection with. |
||
17 | * |
||
18 | */ |
||
19 | public function __construct(array $data = []) |
||
23 | |||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | * |
||
28 | */ |
||
29 | public function getAtIndex($index) |
||
38 | |||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | * |
||
43 | */ |
||
44 | public function hasKey($key) |
||
48 | |||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | * |
||
53 | */ |
||
54 | public function getByKey($key) |
||
60 | } |
||
61 |