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