1 | <?php |
||
9 | abstract class AbstractQueue extends DataDoubleLinkedList implements QueueInterface |
||
10 | { |
||
11 | use CollectionMethods; |
||
12 | |||
13 | use DequeCommonMethods { |
||
14 | addLast as private; // used in add |
||
15 | addFirst as private; // not really needed |
||
16 | offerLast as offer; |
||
17 | offerFirst as private; // not really needed |
||
18 | getFirst as element; |
||
19 | peekFirst as peek; |
||
20 | removeFirst as remove; |
||
21 | pollFirst as poll; |
||
22 | } |
||
23 | |||
24 | 6 | public function add($element) |
|
29 | |||
30 | 1 | protected function containerInternalName() |
|
34 | } |
||
35 |