1 | <?php |
||
16 | abstract class AbstractList extends AbstractCollection implements ListInterface |
||
17 | { |
||
18 | /** |
||
19 | * Returns the index of the first instance of the element, -1 if the element |
||
20 | * doesn't exist |
||
21 | * |
||
22 | * @param mixed $element |
||
23 | * @return int |
||
24 | */ |
||
25 | public function indexOf($element): int |
||
31 | |||
32 | /** |
||
33 | * Returns the index of the last instance of the element, -1 if the element |
||
34 | * doesn't exist |
||
35 | * |
||
36 | * @param mixed $element |
||
37 | * @return int |
||
38 | */ |
||
39 | public function lastIndexOf($element): int |
||
48 | } |
||
49 |